The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package Webservice::InterMine::Query::Roles::Uploadable;

use Moose::Role;

requires qw/service to_xml upload_url/;

sub upload {
    my $self    = shift;
    my $xml     = $self->to_xml;
    my $url     = $self->upload_url;
    my $service = $self->service;
    my $result  = $service->send_off( $xml => $url );
    return $result;
}

1;