line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Easypost::Resource; |
2
|
|
|
|
|
|
|
$Net::Easypost::Resource::VERSION = '0.21'; |
3
|
6
|
|
|
6
|
|
2394
|
use Moo::Role; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
35
|
|
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
1854
|
use Carp qw(croak); |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
311
|
|
6
|
6
|
|
|
6
|
|
1594
|
use Net::Easypost::Request; |
|
6
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
646
|
|
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__ |