line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Discogs::ReleaseBase; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
35
|
use strict; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
263
|
|
4
|
6
|
|
|
6
|
|
27
|
use warnings; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
127
|
|
5
|
6
|
|
|
6
|
|
30
|
use Carp; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
371
|
|
6
|
6
|
|
|
6
|
|
27
|
use base qw( WWW::Discogs::HasMedia ); |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
2849
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
1
|
|
|
1
|
0
|
792
|
my ($class, @args) = @_; |
10
|
|
|
|
|
|
|
|
11
|
1
|
50
|
|
|
|
15
|
croak "Can't create abstract object WWW::Discogs::ReleaseBase" |
12
|
|
|
|
|
|
|
if $class eq __PACKAGE__; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _init { |
16
|
2
|
|
|
2
|
|
34
|
my ($self, %args) = @_; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
50
|
|
|
10
|
$self->{_id} = $args{id} || ''; |
19
|
2
|
|
50
|
|
|
15
|
$self->{_year} = $args{year} || ''; |
20
|
2
|
|
100
|
|
|
13
|
$self->{_notes} = $args{notes} || ''; |
21
|
2
|
|
50
|
|
|
9
|
$self->{_styles} = $args{styles} || []; |
22
|
2
|
|
50
|
|
|
9
|
$self->{_genres} = $args{genres} || []; |
23
|
2
|
|
50
|
|
|
8
|
$self->{_artists} = $args{artists} || []; |
24
|
2
|
|
100
|
|
|
23
|
$self->{_extraartists} = $args{extraartists} || []; |
25
|
2
|
|
50
|
|
|
11
|
$self->{_tracklist} = $args{tracklist} || []; |
26
|
2
|
|
50
|
|
|
16
|
$self->{_params} = $args{_params} || {}; |
27
|
2
|
|
50
|
|
|
17
|
$self->{_uri} = $args{_uri} || ''; |
28
|
|
|
|
|
|
|
|
29
|
2
|
|
|
|
|
11
|
return $self; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub id { |
33
|
2
|
|
|
2
|
0
|
1831
|
my $self = shift; |
34
|
2
|
|
|
|
|
14
|
return $self->{_id}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub year { |
38
|
2
|
|
|
2
|
0
|
4746
|
my $self = shift; |
39
|
2
|
|
|
|
|
16
|
return $self->{_year}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub notes { |
43
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
44
|
1
|
|
|
|
|
10
|
return $self->{_notes}; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub styles { |
48
|
2
|
|
|
2
|
0
|
6
|
my $self = shift; |
49
|
2
|
|
|
|
|
7
|
return @{ $self->{_styles} }; |
|
2
|
|
|
|
|
19
|
|
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub genres { |
53
|
2
|
|
|
2
|
0
|
3565
|
my $self = shift; |
54
|
2
|
|
|
|
|
5
|
return @{ $self->{_genres} }; |
|
2
|
|
|
|
|
13
|
|
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub artists { |
58
|
2
|
|
|
2
|
0
|
1742
|
my $self = shift; |
59
|
2
|
|
|
|
|
4
|
return @{ $self->{_artists} }; |
|
2
|
|
|
|
|
16
|
|
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub extraartists { |
63
|
2
|
|
|
2
|
0
|
1822
|
my $self = shift; |
64
|
2
|
|
|
|
|
5
|
return @{ $self->{_extraartists} }; |
|
2
|
|
|
|
|
12
|
|
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub tracklist { |
68
|
2
|
|
|
2
|
0
|
640
|
my $self = shift; |
69
|
2
|
|
|
|
|
3
|
return @{ $self->{_tracklist} }; |
|
2
|
|
|
|
|
12
|
|
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
1; |