NAME
Net::Iugu::CRUD - Net::Iugu::CRUD - Methods for basic CRUD
VERSION
version 0.000002
SYNOPSIS
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 );
METHODS
create( $data )
Creates a new object.
read( $object_id )
Returns data of an object.
update( $object_id, $data )
Updates an object.
delete( $object_id )
Removes an object.
list( $params )
Returns a list o objects.
AUTHOR
Blabos de Blebe <blabos@cpan.org>
COPYRIGHT AND LICENSE
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.