line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Spotify; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
26842
|
use warnings; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
138
|
|
4
|
3
|
|
|
3
|
|
19
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
112
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
1103
|
use Net::Spotify::Lookup; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
143
|
|
7
|
3
|
|
|
3
|
|
2907
|
use Net::Spotify::Search; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
616
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my $self = { |
15
|
|
|
|
|
|
|
lookup => Net::Spotify::Lookup->new(), |
16
|
|
|
|
|
|
|
search => Net::Spotify::Search->new(), |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
bless $self, $class; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
return $self; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub lookup { |
25
|
0
|
|
|
0
|
1
|
|
my ($self, @parameters) = @_; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
return $self->{lookup}->make_request(@parameters); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub search { |
31
|
0
|
|
|
0
|
1
|
|
my ($self, @parameters) = @_; |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
return $self->{search}->make_request(@parameters); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |