UPS/Response/QV.pm

filter: Statementstmt 93.9% 31 / 33 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 88.6% 39 / 44 CC 3 SCAR 6.0
CC
3
Cov
89%
BUILDARGS
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« UPS/Response/PackageResult.pm ↑ Summary UPS/Response/Image.pm »
1 package Net::Async::Webservice::UPS::Response::QV;
2 5 $Net::Async::Webservice::UPS::Response::QV::VERSION = '1.1.4';
3 {
4 5 $Net::Async::Webservice::UPS::Response::QV::DIST = 'Net-Async-Webservice-UPS';
5 }
6 5 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 ▶use Types::Standard qw(Str ArrayRef);
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 Net::Async::Webservice::UPS::Response::Utils ':all';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 5 extends 'Net::Async::Webservice::UPS::Response';
12  
13 # ABSTRACT: response for qv_events
14  
15  
16 5 has subscriber_id => (
17 is => 'ro',
18 isa => Str,
19 required => 0,
20 );
21  
22  
23 5 has events => (
24 is => 'ro',
25 isa => ArrayRef[QVEvent],
26 required => 0,
27 );
28  
29  
30 5 has bookmark => (
31 is => 'ro',
32 isa => Str,
33 required => 0,
34 );
35  
36 3 ▶sub BUILDARGS {
Subroutine BUILDARGS: called CC=3 SCAR=11.7
Pod undocumented
37 3 my ($class,$hashref) = @_;
38 0 ▶ if (@_>2) { shift; $hashref={@_} };
Branch: 1 branch
BranchTrueFalseTotal
if (@_ > 2) 0 3 3
39  
40 3 my $ret = $class->next::method($hashref);
41  
42 3 ▶ if ($hashref->{QuantumViewEvents}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($hashref->{"QuantumViewEvents"}) 3 0 3
43 3 my $data = $hashref->{QuantumViewEvents};
44 3 set_implied_argument($data);
45 $ret = {
46 %$ret,
47 in_object_array_if(events => 'SubscriptionEvents', 'Net::Async::Webservice::UPS::Response::QV::Event' ),
48 subscriber_id => $data->{SubscriberID},
49 3 pair_if(bookmark => $hashref->{Bookmark}),
50 };
51 }
52 3 return $ret;
53 }
54  
55 5 1;
56  
57 __END__
« UPS/Response/PackageResult.pm ↑ Summary UPS/Response/Image.pm »