line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Encoding.pm 7370 2012-04-09 01:17:33Z chris $ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
WebService::IMDB::Encoding |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package WebService::IMDB::Encoding; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
70
|
|
12
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
87
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
2
|
|
11
|
use base qw(Class::Accessor); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
139
|
|
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
2
|
|
11
|
use Carp; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
511
|
|
19
|
|
|
|
|
|
|
our @CARP_NOT = qw(WebService::IMDB WebService::IMDB::Title); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw( |
22
|
|
|
|
|
|
|
format |
23
|
|
|
|
|
|
|
url |
24
|
|
|
|
|
|
|
)); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 METHODS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 format |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 url |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub _new { |
36
|
3
|
|
|
3
|
|
6
|
my $class = shift; |
37
|
3
|
|
|
|
|
8
|
my $ws = shift; |
38
|
3
|
50
|
|
|
|
10
|
my $data = shift or die; |
39
|
|
|
|
|
|
|
|
40
|
3
|
|
|
|
|
6
|
my $self = {}; |
41
|
|
|
|
|
|
|
|
42
|
3
|
|
|
|
|
8
|
bless $self, $class; |
43
|
|
|
|
|
|
|
|
44
|
3
|
|
|
|
|
13
|
$self->format($data->{'format'}); |
45
|
3
|
|
|
|
|
47
|
$self->url($data->{'url'}); |
46
|
|
|
|
|
|
|
|
47
|
3
|
|
|
|
|
41
|
return $self; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |