File Coverage

blib/lib/Finance/CaVirtex/API/Request/OrderCancel.pm
Criterion Covered Total %
statement 15 21 71.4
branch n/a
condition n/a
subroutine 5 10 50.0
pod 0 5 0.0
total 20 36 55.5


line stmt bran cond sub pod time code
1             package Finance::CaVirtex::API::Request::OrderCancel;
2 1     1   6 use base qw(Finance::CaVirtex::API::Request);
  1         2  
  1         76  
3 1     1   5 use strict;
  1         1  
  1         28  
4              
5 1     1   5 use constant URL => 'https://cavirtex.com/api2/user/order_cancel.json';
  1         1  
  1         42  
6 1     1   4 use constant ATTRIBUTES => qw(id);
  1         2  
  1         36  
7 1     1   6 use constant DATA_KEY => undef;
  1         2  
  1         162  
8              
9 0     0 0   sub url { URL }
10 0     0 0   sub attributes { ATTRIBUTES }
11 0     0 0   sub data_key { DATA_KEY }
12 0     0 0   sub id { my $self = shift; $self->get_set(@_) }
  0            
13 0     0 0   sub is_ready_to_send { defined shift->id }
14              
15             1;
16              
17             __END__