Webservice::InterMine::Role::Listable - Trait for things that can be made into lists
my $query = get_service->select("Gene.*"); my $list = $service->new_list(content => $query);
This role provides the common behaviour for things that can be passed to the new_list method of service objects, and automatically coerced into lists, as well as treated as lists for the purposes of list operations.
Classes that consume this role must provide implementations of the following methods:
This role provides the following overloaded operations.
$a | $b
create a union of two Listables
$a & $b
Create a list of the intersection of two listables.
$a ^ $b
Create a list from the symmetric difference of two listables (the inverse of their intersection).
$a - $b
Create a list of all the elements in
$a less the elements in
This role provides the following functions:
Get a uri to upload a list to.
Get a uri to post to when appending items to the list.