File Coverage

blib/lib/Finance/AMEX/Transaction/GRRCN/Trailer.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 4 5 80.0
total 26 27 96.3


line stmt bran cond sub pod time code
1             package Finance::AMEX::Transaction::GRRCN::Trailer;
2             $Finance::AMEX::Transaction::GRRCN::Trailer::VERSION = '0.004';
3 8     8   60 use strict;
  8         19  
  8         240  
4 8     8   41 use warnings;
  8         21  
  8         211  
5              
6             # ABSTRACT: Parse AMEX Transaction/Invoice Level Reconciliation (GRRCN) Trailer Rows
7              
8 8     8   47 use base 'Finance::AMEX::Transaction::GRRCN::Base';
  8         20  
  8         1909  
9              
10             sub field_map {
11             return {
12 4     4 0 44 RECORD_TYPE => [1, 10],
13             SEQUENTIAL_NUMBER => [11, 10],
14             TOTAL_RECORD_COUNT => [21, 7],
15             };
16             }
17              
18 4     4 1 1079 sub type {return 'TRAILER'}
19              
20 2     2 1 621 sub RECORD_TYPE {return $_[0]->_get_column('RECORD_TYPE')}
21 2     2 1 1027 sub SEQUENTIAL_NUMBER {return $_[0]->_get_column('SEQUENTIAL_NUMBER')}
22 2     2 1 457 sub TOTAL_RECORD_COUNT {return $_[0]->_get_column('TOTAL_RECORD_COUNT')}
23              
24             1;
25              
26             __END__