line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Easypost::Resource; |
2
|
|
|
|
|
|
|
$Net::Easypost::Resource::VERSION = '0.20'; |
3
|
6
|
|
|
6
|
|
3003
|
use Moo::Role; |
|
6
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
42
|
|
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
2162
|
use Carp qw(croak); |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
309
|
|
6
|
6
|
|
|
6
|
|
2048
|
use Net::Easypost::Request; |
|
6
|
|
|
|
|
25
|
|
|
6
|
|
|
|
|
715
|
|
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__ |