File Coverage

blib/lib/Finance/LocalBitcoins/API/Request/Contact.pm
Criterion Covered Total %
statement 12 17 70.5
branch n/a
condition n/a
subroutine 4 8 50.0
pod 0 4 0.0
total 16 29 55.1


line stmt bran cond sub pod time code
1             package Finance::LocalBitcoins::API::Request::Contact;
2 1     1   6 use base qw(Finance::LocalBitcoins::API::Request);
  1         2  
  1         116  
3 1     1   8 use strict;
  1         2  
  1         34  
4              
5 1     1   5 use constant URL => 'https://localbitcoins.com/api/contact_info/%s/';
  1         106  
  1         90  
6 1     1   8 use constant ATTRIBUTES => qw(contact_id);
  1         2  
  1         169  
7              
8 0     0 0   sub contact_id { my $self = shift; $self->get_set(@_) }
  0            
9 0     0 0   sub url { sprintf URL, shift->contact_id }
10 0     0 0   sub is_ready_to_send { defined shift->contact_id }
11 0     0 0   sub attributes { ATTRIBUTES }
12              
13             1;
14              
15             __END__