line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Coincheck::Ticker; |
2
|
2
|
|
|
2
|
|
920987
|
use strict; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
123
|
|
3
|
2
|
|
|
2
|
|
23
|
use warnings; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
149
|
|
4
|
|
|
|
|
|
|
use Class::Accessor::Lite ( |
5
|
2
|
|
|
|
|
31
|
ro => [qw/ |
6
|
|
|
|
|
|
|
client |
7
|
|
|
|
|
|
|
/], |
8
|
2
|
|
|
2
|
|
609
|
); |
|
2
|
|
|
|
|
1107
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
1
|
|
|
1
|
0
|
44
|
my $class = shift; |
12
|
1
|
|
|
|
|
3
|
my $client = shift; |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
6
|
bless { |
15
|
|
|
|
|
|
|
client => $client, |
16
|
|
|
|
|
|
|
}, $class; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub all { |
20
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
|
|
|
my $req_params; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my $res = $self->client->request( |
25
|
|
|
|
|
|
|
'GET' => 'api/ticker', |
26
|
|
|
|
|
|
|
$req_params, |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return $res; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |