File Coverage

blib/lib/Finance/LocalBitcoins/API/Request/Messages.pm
Criterion Covered Total %
statement 15 20 75.0
branch n/a
condition n/a
subroutine 5 9 55.5
pod 0 4 0.0
total 20 33 60.6


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