| 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
| |||||||||||
| 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__ | ||||||||||