| 1 | package Finance::LocalBitcoins::API::Request::Contacts; | ||||||||||
| 2 | 1 | ▶ | use base qw(Finance::LocalBitcoins::API::Request); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use constant URL => 'https://localbitcoins.com'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use constant READY => 1; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use constant ATTRIBUTES => qw(contacts); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 0 | ▶ | sub url { URL } | ||||||||
|
Subroutine
url: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 10 | 0 | ▶ | sub attributes { ATTRIBUTES } | ||||||||
|
Subroutine
attributes: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | 0 | ▶ | sub is_ready_to_send { return defined shift->contacts } | ||||||||
|
Subroutine
is_ready_to_send: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 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 | 0 | ▶ | sub contacts { | ||||||||
|
Subroutine
contacts: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 17 | 0 | my $self = shift; | |||||||||
| 18 | 0 | my $contacts = $self->get_set([@_]); | |||||||||
| 19 | 0 | ▶ | return undef unless ref $contacts eq 'ARRAY'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | return join ',', @$contacts; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 1 | 1; | |||||||||
| 24 | |||||||||||
| 25 | __END__ | ||||||||||