Shutterstock/LicensedImage.pm

filter: Statementstmt 82.6% 19 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 79.3% 23 / 29 CC 1 SCAR 1.8
CC
1
Cov
83%
BUILDARGS
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Shutterstock/AuthedClient.pm ↑ Summary Shutterstock/LicensedVideo.pm »
1 package WebService::Shutterstock::LicensedImage;
2 {
3 3 $WebService::Shutterstock::LicensedImage::VERSION = '0.006';
4 }
5  
6 # ABSTRACT: Allows for interogating and saving a licensed image from the Shutterstock API
7  
8 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶use WebService::Shutterstock::LicensedMedia;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 3 with 'WebService::Shutterstock::LicensedMedia';
14  
15 3 my @attrs = qw(photo_id thumb_large_url allotment_charge);
16 3 foreach my $attr(@attrs){
17 9 has $attr => (is => 'ro');
18 }
19  
20  
21 0 ▶sub BUILDARGS {
Subroutine BUILDARGS: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my $args = shift->SUPER::BUILDARGS(@_);
23 0 $args->{download_url} = $args->{download}->{url};
24 0 $args->{thumb_large_url} = $args->{thumb_large}->{url};
25 0 return $args;
26 }
27  
28  
29 3 1;
30  
31 __END__
« Shutterstock/AuthedClient.pm ↑ Summary Shutterstock/LicensedVideo.pm »