| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 1 | our $VERSION = '0.18'; | |
| 19 | |||
| 20 | 1 | ▶ | use base qw(Class::Accessor); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | 1 | __PACKAGE__->mk_accessors(qw( | |
| 23 | image_location | ||
| 24 | )); | ||
| 25 | |||
| 26 | 0 | ▶ | sub _new { |
|
Subroutine
_new: not called CC=1 SCAR=6.9
| |||
| 27 | 0 | my $class = shift; | |
| 28 | 0 | my $json = shift; | |
| 29 | 0 | my $self = {}; | |
| 30 | |||
| 31 | 0 | bless $self, $class; | |
| 32 | |||
| 33 | 0 | $self->image_location($json->{'image_location'}); | |
| 34 | |||
| 35 | 0 | return $self; | |
| 36 | } | ||
| 37 | |||
| 38 | =head1 METHODS | ||
| 39 | |||
| 40 | =head2 image_location() | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||
| 44 | 1 | 1; | |