line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Shutterstock::LicensedVideo; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$WebService::Shutterstock::LicensedVideo::VERSION = '0.006'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Allows for interogating and saving a licensed video from the Shutterstock API |
7
|
|
|
|
|
|
|
|
8
|
9
|
|
|
9
|
|
53
|
use strict; |
|
9
|
|
|
|
|
21
|
|
|
9
|
|
|
|
|
424
|
|
9
|
9
|
|
|
9
|
|
51
|
use warnings; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
274
|
|
10
|
9
|
|
|
9
|
|
45
|
use Moo; |
|
9
|
|
|
|
|
20
|
|
|
9
|
|
|
|
|
61
|
|
11
|
|
|
|
|
|
|
|
12
|
9
|
|
|
9
|
|
3318
|
use WebService::Shutterstock::LicensedMedia; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
1420
|
|
13
|
|
|
|
|
|
|
with 'WebService::Shutterstock::LicensedMedia'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my @attrs = qw(video_id thumb_large_url allotment_charge); |
16
|
|
|
|
|
|
|
foreach my $attr(@attrs){ |
17
|
|
|
|
|
|
|
has $attr => (is => 'ro'); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub BUILDARGS { |
22
|
1
|
|
|
1
|
0
|
1353
|
my $args = shift->SUPER::BUILDARGS(@_); |
23
|
1
|
|
|
|
|
17
|
$args->{download_url} = $args->{download}->{url}; |
24
|
1
|
|
|
|
|
4
|
$args->{thumb_large_url} = $args->{thumb_large}->{url}; |
25
|
1
|
|
|
|
|
24
|
return $args; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |