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