line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Poster.pm 6486 2011-06-13 13:42:02Z chris $ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
WebService::MoviePosterDB::Poster |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 DESCRIPTION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
package WebService::MoviePosterDB::Poster; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
72
|
|
16
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
51
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
our $VERSION = '0.18'; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
7
|
use base qw(Class::Accessor); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
163
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw( |
23
|
|
|
|
|
|
|
image_location |
24
|
|
|
|
|
|
|
)); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub _new { |
27
|
5
|
|
|
5
|
|
8
|
my $class = shift; |
28
|
5
|
|
|
|
|
11
|
my $json = shift; |
29
|
5
|
|
|
|
|
11
|
my $self = {}; |
30
|
|
|
|
|
|
|
|
31
|
5
|
|
|
|
|
13
|
bless $self, $class; |
32
|
|
|
|
|
|
|
|
33
|
5
|
|
|
|
|
19
|
$self->image_location($json->{'image_location'}); |
34
|
|
|
|
|
|
|
|
35
|
5
|
|
|
|
|
75
|
return $self; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 METHODS |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 image_location() |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |