| 1 | package Net::Async::Webservice::UPS::Response::Rate; | ||||||||||||||||||||||||||||
| 2 | 5 | $Net::Async::Webservice::UPS::Response::Rate::VERSION = '1.1.4'; | |||||||||||||||||||||||||||
| 3 | { | ||||||||||||||||||||||||||||
| 4 | 5 | $Net::Async::Webservice::UPS::Response::Rate::DIST = 'Net-Async-Webservice-UPS'; | |||||||||||||||||||||||||||
| 5 | } | ||||||||||||||||||||||||||||
| 6 | 5 | ▶ | use Moo; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | 5 | ▶ | use Types::Standard qw(ArrayRef HashRef); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 5 | ▶ | use Net::Async::Webservice::UPS::Types qw(:types); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 5 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 5 | extends 'Net::Async::Webservice::UPS::Response'; | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | # ABSTRACT: response for request_rate | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | 5 | has services => ( | |||||||||||||||||||||||||||
| 17 | is => 'ro', | ||||||||||||||||||||||||||||
| 18 | isa => ArrayRef[Service], | ||||||||||||||||||||||||||||
| 19 | required => 1, | ||||||||||||||||||||||||||||
| 20 | ); | ||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 5 | ▶ | sub BUILDARGS { | ||||||||||||||||||||||||||
|
Subroutine
BUILDARGS: called CC=4 SCAR=16.1
Pod
undocumented
| |||||||||||||||||||||||||||||
| 23 | 5 | my ($class,$hashref) = @_; | |||||||||||||||||||||||||||
| 24 | 0 | ▶ | if (@_>2) { shift; $hashref={@_} }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | 5 | my $ret = $class->next::method($hashref); | |||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | 5 | ▶ | if ($hashref->{services} and not $ret->{services}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$hashref->{"services"} and not $ret->{"services"}
MC/DC0%0/2
$hashref->{"services"} and not $ret->{"services"}
$hashref->{"services"}
not $ret->{"services"}
Truth table33%1/3
A and not(B)
A= $hashref->{"services"}B= not $ret->{"services"}
| |||||||||||||||||||||||||||||
| 29 | 5 | $ret->{services} = $hashref->{services}; | |||||||||||||||||||||||||||
| 30 | } | ||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | 5 | return $ret; | |||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | 5 | 1; | |||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | __END__ | ||||||||||||||||||||||||||||