line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::LocalBitcoins::API::Request::AdsGet; |
2
|
1
|
|
|
1
|
|
6
|
use base qw(Finance::LocalBitcoins::API::Request); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
84
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use constant URL => 'https://localbitcoins.com/api/ad-get'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
57
|
|
6
|
1
|
|
|
1
|
|
5
|
use constant READY => 1; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
44
|
|
7
|
1
|
|
|
1
|
|
5
|
use constant ATTRIBUTES => qw(ads); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
203
|
|
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
0
|
0
|
|
sub url { URL } |
10
|
0
|
|
|
0
|
0
|
|
sub is_ready_to_send { defined shift->ads } |
11
|
0
|
|
|
0
|
0
|
|
sub attributes { ATTRIBUTES } |
12
|
|
|
|
|
|
|
sub ads { |
13
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
14
|
0
|
|
|
|
|
|
my $ads = $self->get_set([@_]); |
15
|
0
|
0
|
|
|
|
|
return undef unless ref $ads eq 'ARRAY'; |
16
|
0
|
|
|
|
|
|
return join ',', @$ads; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |