line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
58
|
|
12
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
78
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
2
|
|
10
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
147
|
|
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
2
|
|
11
|
use Carp; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
467
|
|
19
|
|
|
|
|
|
|
our @CARP_NOT = qw(WebService::IMDB WebService::IMDB::Title); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__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
|
|
|
|
|
|
|
sub _new { |
39
|
1065
|
|
|
1065
|
|
1359
|
my $class = shift; |
40
|
1065
|
|
|
|
|
1262
|
my $ws = shift; |
41
|
1065
|
50
|
|
|
|
2202
|
my $data = shift or die; |
42
|
|
|
|
|
|
|
|
43
|
1065
|
|
|
|
|
1708
|
my $self = {}; |
44
|
|
|
|
|
|
|
|
45
|
1065
|
|
|
|
|
2337
|
bless $self, $class; |
46
|
|
|
|
|
|
|
|
47
|
1065
|
|
|
|
|
3338
|
$self->height($data->{'height'}); |
48
|
1065
|
|
|
|
|
11397
|
$self->url($data->{'url'}); |
49
|
1065
|
|
|
|
|
11223
|
$self->width($data->{'width'}); |
50
|
|
|
|
|
|
|
|
51
|
1065
|
|
|
|
|
10556
|
return $self; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |