File Coverage

blib/lib/Finance/LocalBitcoins/API/Request/AdGet.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::AdGet;
2 1     1   6 use base qw(Finance::LocalBitcoins::API::Request);
  1         1  
  1         140  
3 1     1   6 use strict;
  1         2  
  1         40  
4              
5 1     1   5 use constant URL => 'https://localbitcoins.com/api/ad-get/%s/';
  1         1  
  1         50  
6 1     1   5 use constant READY => 1;
  1         2  
  1         45  
7 1     1   6 use constant ATTRIBUTES => qw(ad_id);
  1         2  
  1         177  
8              
9 0     0 0   sub ad_id { my $self = shift; $self->get_set(@_) }
  0            
10 0     0 0   sub url { sprintf URL, shift->ad_id }
11 0     0 0   sub is_ready_to_send { defined shift->ad_id }
12 0     0 0   sub attributes { ATTRIBUTES }
13              
14             1;
15              
16             __END__