The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Webservice::InterMine::ResultObject - a class for inflating jsonobjects into

SYNOPSIS

    # 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...

DESCRIPTION

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.

Usage

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.

METHODS

This package has no methods as such, but uses AUTOLOAD to handle method calls.

SEE ALSO

AUTHOR

Alex Kalderimis dev@intermine.org

BUGS

Please report any bugs or feature requests to dev@intermine.org.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Webservice::InterMine::ResultObject

You can also look for information at:

COPYRIGHT AND LICENSE

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.