The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Net::Easypost::Resource;
$Net::Easypost::Resource::VERSION = '0.15';
use Carp qw(croak);
use Moo::Role;
use Net::Easypost::Request;

# all Net::Easypost::Resource objects must implementat clone and serialize
requires qw(serialize clone);


has id => (
   is => 'rwp',
);


has operation => (
   is      => 'ro',
   lazy    => 1,
   builder => 1,
);


has role => (
   is      => 'ro',
   builder => 1,
);


has fieldnames => (
   is      => 'ro',
   builder => 1,
);


has requester => (
   is      => 'ro',
   default => sub { Net::Easypost::Request->new },
);

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Net::Easypost::Resource

=head1 VERSION

version 0.15

=head1 ATTRIBUTES

=head2 id

A unique field that represent this Object to Easypost

=head2 endpoint

base API operation endpoint for this Object

=head2 role

Role of this object: address, shipment, parcel, etc...

=head2 fieldnames

attributes of this Object in the Easypost API

=head2 requester

HTTP client to make GET & POST requests

=head1 AUTHOR

Mark Allen <mrallen1@yahoo.com>, Hunter McMillen <mcmillhj@gmail.com>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Mark Allen.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut