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