Picnic/Result/DeliverySlot.pm

filter: Statementstmt 84.0% 21 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 6 / 10 Podpod n/a totaltotal 77.1% 27 / 35 CC 1 SCAR 3.4
CC
1
Cov
84%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.4
« Picnic/Result/User.pm ↑ Summary Picnic/Result/DeliverySlots.pm »
1 package WWW::Picnic::Result::DeliverySlot;
2 2 our $VERSION = '0.100';
3 2 our $AUTHORITY = 'cpan:GETTY';
4 # ABSTRACT: Picnic delivery time slot
5  
6 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 extends 'WWW::Picnic::Result';
9  
10  
11 has slot_id => (
12 is => 'ro',
13 lazy => 1,
14 1 ▶ default => sub { shift->_get('slot_id') },
Subroutine __ANON__: called CC=1 SCAR=0.0
15 2 );
16  
17  
18 has hub_id => (
19 is => 'ro',
20 lazy => 1,
21 1 ▶ default => sub { shift->_get('hub_id') },
Subroutine __ANON__: called CC=1 SCAR=0.0
22 2 );
23  
24  
25 has fc_id => (
26 is => 'ro',
27 lazy => 1,
28 0 ▶ default => sub { shift->_get('fc_id') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
29 2 );
30  
31  
32 has window_start => (
33 is => 'ro',
34 lazy => 1,
35 1 ▶ default => sub { shift->_get('window_start') },
Subroutine __ANON__: called CC=1 SCAR=0.0
36 2 );
37  
38  
39 has window_end => (
40 is => 'ro',
41 lazy => 1,
42 1 ▶ default => sub { shift->_get('window_end') },
Subroutine __ANON__: called CC=1 SCAR=0.0
43 2 );
44  
45  
46 has cut_off_time => (
47 is => 'ro',
48 lazy => 1,
49 0 ▶ default => sub { shift->_get('cut_off_time') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
50 2 );
51  
52  
53 has is_available => (
54 is => 'ro',
55 lazy => 1,
56 2 ▶ default => sub { shift->_get('is_available') },
Subroutine __ANON__: called CC=1 SCAR=0.0
57 2 );
58  
59  
60 has unavailability_reason => (
61 is => 'ro',
62 lazy => 1,
63 0 ▶ default => sub { shift->_get('unavailability_reason') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
64 2 );
65  
66  
67 has minimum_order_value => (
68 is => 'ro',
69 lazy => 1,
70 0 ▶ default => sub { shift->_get('minimum_order_value') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
71 2 );
72  
73  
74 2 1;
75  
76 __END__
« Picnic/Result/User.pm ↑ Summary Picnic/Result/DeliverySlots.pm »