File Coverage

blib/lib/Business/NAB/Australian/DirectEntry/Report/TrailerRecord.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 28 28 100.0


line stmt bran cond sub pod time code
1             package Business::NAB::Australian::DirectEntry::Report::TrailerRecord;
2             $Business::NAB::Australian::DirectEntry::Report::TrailerRecord::VERSION = '0.03';
3             =head1 NAME
4              
5             Business::NAB::Australian::DirectEntry::Report::TrailerRecord
6              
7             =head1 SYNOPSIS
8              
9             =head1 DESCRIPTION
10              
11             Class for trailer record in the Australian Direct Entry Report file
12              
13             =cut;
14              
15 2     2   1202308 use strict;
  2         4  
  2         99  
16 2     2   14 use warnings;
  2         5  
  2         158  
17 2     2   13 use feature qw/ signatures /;
  2         3  
  2         343  
18              
19 2     2   708 use Moose;
  2         589383  
  2         34  
20             extends 'Business::NAB::CSV';
21 2     2   18597 no warnings qw/ experimental::signatures /;
  2         4  
  2         156  
22              
23 2         428 use Business::NAB::Types qw/
24             add_max_string_attribute
25 2     2   844 /;
  2         8  
26              
27             =head1 ATTRIBUTES
28              
29             All are NAB::Type::PositiveIntOrZero types, required, except where stated
30              
31             =over
32              
33             =item net_file_total
34              
35             =item credit_file_total
36              
37             =item debit_file_total
38              
39             =item total_number_of_records
40              
41             =back
42              
43             =cut
44              
45 7     7   28 sub _record_type { '99' }
46              
47             sub _attributes {
48              
49 9     9   61 return qw/
50             net_file_total
51             credit_file_total
52             debit_file_total
53             total_number_of_records
54             /;
55             }
56              
57             has [ __PACKAGE__->_attributes ] => (
58             is => 'ro',
59             isa => 'NAB::Type::PositiveIntOrZero',
60             required => 1,
61             );
62              
63             __PACKAGE__->meta->make_immutable;