Net::Iugu::CRUD - Net::Iugu::CRUD - Methods for basic CRUD
version 0.000002
Implements the basic CRUD operations for some endpoints of the Iugu API. It is used as base class for other modules and shouldn't be instantiated directly.
package Net::Iugu::Endpoint; use Moo; extends 'Net::Iugu::CRUD'; ... pachage main; use Net::Iugu::Endpoint; my $endpoint = Net::Iugu::Endpoint->new( token => 'my_api_token' ); my $res; $res = $endpoint->create( $data ); $res = $endpoint->read( $object_id ); $res = $endpoint->update( $object_id, $data ); $res = $endpoint->delete( $object_id ); $res = $endpoint->list( $params );
Creates a new object.
Returns data of an object.
Updates an object.
Removes an object.
Returns a list o objects.
Blabos de Blebe <blabos@cpan.org>
This software is copyright (c) 2015 by Blabos de Blebe.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Iugu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Iugu
CPAN shell
perl -MCPAN -e shell install Net::Iugu
For more information on module installation, please visit the detailed CPAN module installation guide.