Business::Monzo::Resource
This is a base class for Monzo resource classes, it implements common behaviour. You shouldn't use this class directly, but extend it instead.
The Resource class has the following attributes (with their type).
client (Business::Monzo::Client) - REQUIRED url (Str) url_no_id (Str)
Returns a hash representation of the object.
my %data = $transaction->to_hash;
Returns a json string representation of the object.
my $json = $transaction->as_json;
Returns a new instance of the object populated with the attributes having called the API
my $populated_object = $object->get;
This is for when you have instantiated an object with the id, so calling the API will retrieve the full details for the entity.
Lee Johnson - leejo@cpan.org
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/leejo/business-monzo
To install Business::Monzo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Monzo
CPAN shell
perl -MCPAN -e shell install Business::Monzo
For more information on module installation, please visit the detailed CPAN module installation guide.