| 1 | # $Id: Image.pm 7370 2012-04-09 01:17:33Z chris $ | ||||||||||
| 2 | |||||||||||
| 3 | =head1 NAME | ||||||||||
| 4 | |||||||||||
| 5 | WebService::IMDB::Image | ||||||||||
| 6 | |||||||||||
| 7 | =cut | ||||||||||
| 8 | |||||||||||
| 9 | package WebService::IMDB::Image; | ||||||||||
| 10 | |||||||||||
| 11 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 2 | our $VERSION = '0.05'; | |||||||||
| 15 | |||||||||||
| 16 | 2 | ▶ | use base qw(Class::Accessor); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 2 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 2 | our @CARP_NOT = qw(WebService::IMDB WebService::IMDB::Title); | |||||||||
| 20 | |||||||||||
| 21 | 2 | __PACKAGE__->mk_accessors(qw( | |||||||||
| 22 | height | ||||||||||
| 23 | url | ||||||||||
| 24 | width | ||||||||||
| 25 | )); | ||||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | =head1 METHODS | ||||||||||
| 29 | |||||||||||
| 30 | =head2 height | ||||||||||
| 31 | |||||||||||
| 32 | =head2 url | ||||||||||
| 33 | |||||||||||
| 34 | =head2 width | ||||||||||
| 35 | |||||||||||
| 36 | =cut | ||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub _new { | ||||||||
|
Subroutine
_new: not called CC=2 SCAR=17.9
| |||||||||||
| 39 | 0 | my $class = shift; | |||||||||
| 40 | 0 | my $ws = shift; | |||||||||
| 41 | 0 | ▶ | my $data = shift or die; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | |||||||||||
| 43 | 0 | my $self = {}; | |||||||||
| 44 | |||||||||||
| 45 | 0 | bless $self, $class; | |||||||||
| 46 | |||||||||||
| 47 | 0 | $self->height($data->{'height'}); | |||||||||
| 48 | 0 | $self->url($data->{'url'}); | |||||||||
| 49 | 0 | $self->width($data->{'width'}); | |||||||||
| 50 | |||||||||||
| 51 | 0 | return $self; | |||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | 2 | 1; | |||||||||