Lee Johnson

NAME

Business::Fixflo::Resource

DESCRIPTION

This is a base class for Fixflo resource classes, it implements common behaviour. You shouldn't use this class directly, but extend it instead.

ATTRIBUTES

    client
    url
    url_no_id

METHODS

to_hash

Returns a hash representation of the object.

    my %data = $Issue->to_hash;

to_json

Returns a json string representation of the object.

    my $json = $Issue->to_json;

get

Populates the object with its attributes (calls the API)

    $Issue->get

As the data returned in the call to list objects does not contain the full data of the objects (it only contains lightweight information, such as the URLs of the objects you are interested in) you need to call the ->get method to populate the attributes on an object. Really the Paginator just contains a list of URLs and an easy way to navigate through them.

If the data returned from Fixflo contains attributes not available on the object then warnings will be raised for those attributes that couldn't be set - if you see any of these please raise an issue against the dist as these are likely due to updates to the Fixflo API.

AUTHOR

Lee Johnson - leejo@cpan.org

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. If you would like to contribute documentation, features, bug fixes, or anything else then please raise an issue / pull request:

    https://github.com/Humanstate/business-fixflo