File Coverage

blib/lib/Finance/LocalBitcoins/API/Request/Ads.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod 0 7 0.0
total 38 45 84.4


line stmt bran cond sub pod time code
1             package Finance::LocalBitcoins::API::Request::Ads;
2 1     1   6 use base qw(Finance::LocalBitcoins::API::Request);
  1         3  
  1         169  
3 1     1   8 use strict;
  1         2  
  1         35  
4              
5 1     1   5 use constant URL => 'https://localbitcoins.com/api/ads/';
  1         2  
  1         52  
6 1     1   5 use constant READY => 1;
  1         2  
  1         54  
7 1     1   5 use constant ATTRIBUTES => qw(visible trade_type currency countrycode);
  1         2  
  1         252  
8              
9 1     1 0 5 sub visible { my $self = shift; $self->get_set(@_) }
  1         11  
10 1     1 0 3 sub trade_type { my $self = shift; $self->get_set(@_) }
  1         5  
11 1     1 0 4 sub currency { my $self = shift; $self->get_set(@_) }
  1         5  
12 1     1 0 3 sub countrycode { my $self = shift; $self->get_set(@_) }
  1         5  
13 1     1 0 6 sub url { URL }
14 1     1 0 5 sub is_ready_to_send { READY }
15 2     2 0 12 sub attributes { ATTRIBUTES }
16              
17             1;
18              
19             __END__