Skip to content
Snippets Groups Projects
Commit 39eea9dc authored by Andy Yates's avatar Andy Yates
Browse files

Shortcut method call for the current species name from the backing DBAdaptor

parent 777df2c0
No related branches found
No related tags found
No related merge requests found
......@@ -1442,7 +1442,21 @@ sub summary_as_hash {
return \%summary;
}
=head2 species
Example : $feature->species();
Description : Shortcut to the feature's DBAdaptor and returns its species name
Returntype : String the species name
Exceptions : Thrown if there is no attached adaptor
Caller : Webcode
=cut
sub species {
my ($self) = @_;
throw "Can only call this method if you have attached an adaptor" if ! $self->adaptor();
reutrn $self->adaptor()->db()->species();
}
##############################################
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment