| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Finance::LocalBitcoins::API::Request::Contacts; |
|
2
|
1
|
|
|
1
|
|
5
|
use base qw(Finance::LocalBitcoins::API::Request); |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
83
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
33
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use constant URL => 'https://localbitcoins.com'; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
49
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use constant READY => 1; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
52
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use constant ATTRIBUTES => qw(contacts); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
208
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
0
|
|
|
0
|
0
|
|
sub url { URL } |
|
10
|
0
|
|
|
0
|
0
|
|
sub attributes { ATTRIBUTES } |
|
11
|
0
|
|
|
0
|
0
|
|
sub is_ready_to_send { return defined shift->contacts } |
|
12
|
|
|
|
|
|
|
# WARNING: THIS IS A WEIRD ROUTINE! |
|
13
|
|
|
|
|
|
|
# it accepts an array and returns a comma separated list. ie: |
|
14
|
|
|
|
|
|
|
# my $return = $api->currency('this','that','other'); |
|
15
|
|
|
|
|
|
|
# $return now is: "this,that,other" |
|
16
|
|
|
|
|
|
|
sub contacts { |
|
17
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
18
|
0
|
|
|
|
|
|
my $contacts = $self->get_set([@_]); |
|
19
|
0
|
0
|
|
|
|
|
return undef unless ref $contacts eq 'ARRAY'; |
|
20
|
0
|
|
|
|
|
|
return join ',', @$contacts; |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |