Easypost/Resource.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Easypost/CustomsItem.pm ↑ Summary
1 package Net::Easypost::Resource;
2 6 $Net::Easypost::Resource::VERSION = '0.23';
3 6 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 6 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use Net::Easypost::Request;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 # all Net::Easypost::Resource objects must implement clone and serialize
9 6 requires qw(serialize clone);
10  
11 6 has id => (
12 is => 'rwp',
13 );
14  
15 6 has 'operation' => (
16 is => 'ro',
17 builder => 1,
18 );
19  
20 6 has 'role' => (
21 is => 'ro',
22 builder => 1,
23 );
24  
25 6 has 'fieldnames' => (
26 is => 'ro',
27 builder => 1,
28 );
29  
30 has 'requester' => (
31 is => 'ro',
32 69 ▶ default => sub { Net::Easypost::Request->new },
Subroutine __ANON__: called CC=1 SCAR=0.0
33 6 );
34  
35 6 1;
36  
37 __END__
« Easypost/CustomsItem.pm ↑ Summary