File Coverage

blib/lib/Finance/CaVirtex/API/Request/OrderBook.pm
Criterion Covered Total %
statement 28 29 96.5
branch n/a
condition n/a
subroutine 13 14 92.8
pod 0 7 0.0
total 41 50 82.0


line stmt bran cond sub pod time code
1             package Finance::CaVirtex::API::Request::OrderBook;
2 1     1   6 use base qw(Finance::CaVirtex::API::Request);
  1         3  
  1         535  
3 1     1   5 use strict;
  1         1  
  1         27  
4              
5 1     1   4 use constant URL => 'https://cavirtex.com/api2/orderbook.json';
  1         2  
  1         39  
6 1     1   5 use constant ATTRIBUTES => qw(currencypair);
  1         1  
  1         37  
7 1     1   5 use constant DATA_KEY => 'orderbook';
  1         2  
  1         62  
8 1     1   5 use constant REQUEST_TYPE => 'GET';
  1         2  
  1         38  
9 1     1   5 use constant IS_PRIVATE => 0;
  1         1  
  1         169  
10              
11 3     3 0 14 sub request_type { REQUEST_TYPE }
12 1     1 0 4 sub url { URL }
13 2     2 0 8 sub attributes { ATTRIBUTES }
14 0     0 0 0 sub data_key { DATA_KEY }
15 2     2 0 8 sub is_private { IS_PRIVATE }
16              
17 4     4 0 5 sub currencypair { my $self = shift; $self->get_set(@_) }
  4         18  
18 1     1 0 3 sub is_ready_to_send { defined shift->currencypair }
19              
20             1;
21              
22             __END__