line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Easypost::Resource; |
2
|
|
|
|
|
|
|
$Net::Easypost::Resource::VERSION = '0.23'; |
3
|
6
|
|
|
6
|
|
2748
|
use Moo::Role; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
29
|
|
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
1634
|
use Carp qw(croak); |
|
6
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
271
|
|
6
|
6
|
|
|
6
|
|
1975
|
use Net::Easypost::Request; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
662
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# all Net::Easypost::Resource objects must implement clone and serialize |
9
|
|
|
|
|
|
|
requires qw(serialize clone); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has id => ( |
12
|
|
|
|
|
|
|
is => 'rwp', |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has 'operation' => ( |
16
|
|
|
|
|
|
|
is => 'ro', |
17
|
|
|
|
|
|
|
builder => 1, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has 'role' => ( |
21
|
|
|
|
|
|
|
is => 'ro', |
22
|
|
|
|
|
|
|
builder => 1, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has 'fieldnames' => ( |
26
|
|
|
|
|
|
|
is => 'ro', |
27
|
|
|
|
|
|
|
builder => 1, |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
has 'requester' => ( |
31
|
|
|
|
|
|
|
is => 'ro', |
32
|
|
|
|
|
|
|
default => sub { Net::Easypost::Request->new }, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |