line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Discogs::Master; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
34
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
202
|
|
4
|
6
|
|
|
6
|
|
28
|
use warnings; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
136
|
|
5
|
6
|
|
|
6
|
|
28
|
use NEXT; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
182
|
|
6
|
6
|
|
|
6
|
|
32
|
use base qw ( WWW::Discogs::ReleaseBase ); |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
7106
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
1
|
|
|
1
|
0
|
6
|
my ($class, @args) = @_; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
|
|
3
|
my $self = {}; |
12
|
1
|
|
|
|
|
3
|
bless $self, $class; |
13
|
1
|
|
|
|
|
20
|
$self->EVERY::LAST::_init(@args); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
19
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _init { |
19
|
1
|
|
|
1
|
|
13
|
my ($self, %args) = @_; |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
50
|
|
|
14
|
$self->{_versions} = $args{versions} || []; |
22
|
1
|
|
50
|
|
|
6
|
$self->{_main_release} = $args{main_release} || ''; |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
|
|
6
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub versions { |
28
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
29
|
1
|
|
|
|
|
3
|
return @{ $self->{_versions} }; |
|
1
|
|
|
|
|
7
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub main_release { |
33
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
34
|
1
|
|
|
|
|
6
|
return $self->{_main_release}; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |