File Coverage

blib/lib/Finance/LocalBitcoins/API/Request/Cancel.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::Cancel;
2 1     1   8 use base qw(Finance::LocalBitcoins::API::Request);
  1         2  
  1         93  
3 1     1   7 use strict;
  1         3  
  1         35  
4              
5 1     1   5 use constant URL => 'https://localbitcoins.com/api/contact_cancel/%s/';
  1         2  
  1         53  
6 1     1   6 use constant ATTRIBUTES => qw(contact_id);
  1         3  
  1         188  
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__