Webservice::InterMine::ResultObject - a class for inflating jsonobjects into
# This package should not be used directly, but if you did: use Webservice::InterMine::ResultObject; my $hashref = { foo => "bar", bop => "bip", quuxes => [ {zip => 1, zop => 2}, {zip => 3, zop => 4} ] }; bless $hashref, "Webservice::InterMine::ResultObject"; for my $quux ($hashref->quuxes) { bless $quux, "Webservice::InterMine::ResultObject"; } # Now: use Test::More; is($hashref->bar, "bar"); is($hashref->bop, "bip"); is(hashref->quuxes->[0]->zip, 1); # and so on...
This package is used to provide inflated objects with property accessors as results from queries. It is used by Runnable queries to generate the appropriate results.
A hashref blessed into this class will have accessors for any of its keys. It will automatically dereference arrayref values when called in list context.
This package has no methods as such, but uses AUTOLOAD to handle method calls.
Webservice::InterMine::Cookbook - A guide to using the Webservice::InterMine Perl API
Webservice::InterMine::Query
Webservice::InterMine
Webservice::InterMine::Service
Alex Kalderimis dev@intermine.org
dev@intermine.org
Please report any bugs or feature requests to dev@intermine.org.
You can find documentation for this module with the perldoc command.
perldoc Webservice::InterMine::ResultObject
You can also look for information at:
InterMine
http://www.intermine.org
Documentation
http://www.intermine.org/perlapi
Copyright 2006 - 2011 FlyMine, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Webservice::InterMine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::InterMine
CPAN shell
perl -MCPAN -e shell install Webservice::InterMine
For more information on module installation, please visit the detailed CPAN module installation guide.