File Coverage

blib/lib/Finance/CaVirtex/API/Request/Order.pm
Criterion Covered Total %
statement 15 28 53.5
branch 0 2 0.0
condition 0 6 0.0
subroutine 5 13 38.4
pod 0 8 0.0
total 20 57 35.0


line stmt bran cond sub pod time code
1             package Finance::CaVirtex::API::Request::Order;
2 1     1   6 use base qw(Finance::CaVirtex::API::Request);
  1         1  
  1         84  
3 1     1   6 use strict;
  1         1  
  1         33  
4              
5 1     1   5 use constant URL => 'https://cavirtex.com/api2/user/order.json';
  1         2  
  1         43  
6 1     1   4 use constant ATTRIBUTES => qw(currencypair mode amount price);
  1         2  
  1         43  
7 1     1   4 use constant DATA_KEY => 'order';
  1         1  
  1         246  
8              
9              
10 0     0 0   sub url { URL }
11 0     0 0   sub attributes { ATTRIBUTES }
12 0     0 0   sub data_key { DATA_KEY }
13 0     0 0   sub currencypair { my $self = shift; $self->get_set(@_) }
  0            
14 0     0 0   sub mode { my $self = shift; $self->get_set(@_) }
  0            
15 0     0 0   sub amount { my $self = shift; $self->get_set(@_) }
  0            
16 0     0 0   sub price { my $self = shift; $self->get_set(@_) }
  0            
17             sub is_ready_to_send {
18 0     0 0   my $self = shift;
19 0 0 0       return defined $self->currencypair and defined $self->mode and defined $self->amount and defined $self->price;
      0        
20             }
21              
22             1;
23              
24             __END__