WWW/eNom/IRTPDetail.pm

filter: Statementstmt 84.6% 22 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 80.5% 29 / 36 CC 2 SCAR 8.1
CC
2
Cov
79%
construct_from_response
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« WWW/eNom/Role/Command.pm ↑ Summary WWW/eNom.pm »
1 package WWW::eNom::IRTPDetail;
2  
3 51 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 51 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 51 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 51 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 51 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 51 ▶use WWW::eNom::Types qw( Bool );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 51 our $VERSION = 'v2.7.0'; # VERSION
13 # ABSTRACT: Representation of IRTP Detail
14  
15 51 has 'is_transfer_locked' => (
16 is => 'ro',
17 isa => Bool,
18 required => 1,
19 );
20  
21 0 ▶sub construct_from_response {
Subroutine construct_from_response: not called CC=2 SCAR=17.9
Pod documented
22 0 my $self = shift;
23 0 my $response = shift;
24  
25 0 ▶ (!$response ) and return;
Branch: 1 branch
BranchTrueFalseTotal
$response or return 0 0 0
26  
27 return $self->new(
28 0 is_transfer_locked => $response->{transferlock} eq 'True',
29 );
30 }
31  
32 51 __PACKAGE__->meta->make_immutable;
33 51 1;
34  
35 __END__
« WWW/eNom/Role/Command.pm ↑ Summary WWW/eNom.pm »