File Coverage

blib/lib/Finance/LocalBitcoins/API/Request/SendPin.pm
Criterion Covered Total %
statement 12 22 54.5
branch 0 2 0.0
condition 0 3 0.0
subroutine 4 10 40.0
pod 0 6 0.0
total 16 43 37.2


line stmt bran cond sub pod time code
1             package Finance::LocalBitcoins::API::Request::SendPin;
2 1     1   6 use base qw(Finance::LocalBitcoins::API::Request);
  1         2  
  1         82  
3 1     1   6 use strict;
  1         2  
  1         35  
4              
5 1     1   5 use constant URL => 'https://localbitcoins.com/api/wallet-send-pin/';
  1         2  
  1         62  
6 1     1   7 use constant ATTRIBUTES => qw(address amount pincode);
  1         3  
  1         398  
7              
8 0     0 0   sub address { my $self = shift; $self->get_set(@_) }
  0            
9 0     0 0   sub amount { my $self = shift; $self->get_set(@_) }
  0            
10 0     0 0   sub pincode { my $self = shift; $self->get_set(@_) }
  0            
11 0     0 0   sub url { URL }
12 0     0 0   sub attributes { ATTRIBUTES }
13             sub is_ready_to_send {
14 0     0 0   my $self = shift;
15 0 0 0       return defined $self->address and defined $self->amount and defined $self->pincode;
16             }
17              
18             1;
19              
20             __END__