line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::LocalBitcoins::API::Request::User; |
2
|
1
|
|
|
1
|
|
7
|
use base qw(Finance::LocalBitcoins::API::Request); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
95
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use constant URL => 'https://localbitcoins.com/api/account_info/%s/'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
60
|
|
6
|
|
|
|
|
|
|
#use constant ATTRIBUTES => qw(username); |
7
|
|
|
|
|
|
|
#use constant ATTRIBUTES => qw(); |
8
|
|
|
|
|
|
|
#use constant REQUEST_TYPE => 'POST'; |
9
|
|
|
|
|
|
|
#use constant DATA_KEY => undef; |
10
|
1
|
|
|
1
|
|
5
|
use constant IS_PRIVATE => 1; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
53
|
|
11
|
1
|
|
|
1
|
|
6
|
use constant READY => 1; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
234
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub init { |
14
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
15
|
1
|
|
|
|
|
4
|
my %args = @_; |
16
|
1
|
50
|
|
|
|
11
|
$self->username($args{username}) if exists $args{username}; |
17
|
1
|
|
|
|
|
10
|
return $self->SUPER::init(@_); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
0
|
5
|
sub url { sprintf URL, shift->username } |
21
|
|
|
|
|
|
|
#sub attributes { ATTRIBUTES } |
22
|
|
|
|
|
|
|
#sub request_type { REQUEST_TYPE } |
23
|
|
|
|
|
|
|
#sub data_key { DATA_KEY } |
24
|
2
|
|
|
2
|
0
|
14
|
sub is_private { IS_PRIVATE } |
25
|
1
|
|
|
1
|
0
|
4
|
sub is_ready_to_send { READY } |
26
|
2
|
|
|
2
|
0
|
5
|
sub username { my $self = shift; $self->get_set(@_) } |
|
2
|
|
|
|
|
14
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |