Business::GoCardless::Resource
This is a base class for gocardless resource classes, it implements common behaviour. You shouldn't use this class directly, but extend it instead.
The gocardless API endpoint that corresponds to the resource, for example a Business::GoCardless::Bill object will have an endpoint of "bills". This is handled automatically, you do not need to pass this unless the name of the resource differs significantly from the endpoint.
The client object, defaults to Business::GoCardless::Client.
Calls the gocardless API and populates the resource object with the data.
my $Bill = Business::GoCardless::Bill->new( client => $self->client ); $Bill->find_with_client;
Returns a hash representation of the object.
my %data = $Bill->to_hash;
Returns a json string representation of the object.
my $json = $Bill->to_json;
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/Humanstate/business-gocardless
To install Business::GoCardless, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::GoCardless
CPAN shell
perl -MCPAN -e shell install Business::GoCardless
For more information on module installation, please visit the detailed CPAN module installation guide.