File Coverage

blib/lib/Finance/LocalBitcoins/API/Request/Ticker.pm
Criterion Covered Total %
statement 22 22 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 0 4 0.0
total 32 36 88.8


line stmt bran cond sub pod time code
1             package Finance::LocalBitcoins::API::Request::Ticker;
2 1     1   6 use base qw(Finance::LocalBitcoins::API::Request);
  1         2  
  1         650  
3 1     1   6 use strict;
  1         3  
  1         34  
4              
5 1     1   5 use constant URL => 'https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/';
  1         2  
  1         53  
6 1     1   6 use constant REQUEST_TYPE => 'GET';
  1         2  
  1         45  
7 1     1   5 use constant IS_PRIVATE => 0;
  1         2  
  1         58  
8 1     1   5 use constant READY => 1;
  1         2  
  1         134  
9              
10 1     1 0 6 sub url { URL }
11 3     3 0 22 sub request_type { REQUEST_TYPE }
12 2     2 0 14 sub is_private { IS_PRIVATE }
13 1     1 0 5 sub is_ready_to_send { READY }
14              
15             1;
16              
17             __END__