File Coverage

blib/lib/Business/NAB/Australian/DirectEntry/Report/DisclaimerRecord.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::DisclaimerRecord;
2             $Business::NAB::Australian::DirectEntry::Report::DisclaimerRecord::VERSION = '0.03';
3             =head1 NAME
4              
5             Business::NAB::Australian::DirectEntry::Report::DisclaimerRecord
6              
7             =head1 SYNOPSIS
8              
9             =head1 DESCRIPTION
10              
11             Class for disclaimer record in the Australian Direct Entry Report file
12              
13             =cut;
14              
15 2     2   1257391 use strict;
  2         6  
  2         115  
16 2     2   11 use warnings;
  2         6  
  2         191  
17 2     2   17 use feature qw/ signatures /;
  2         6  
  2         324  
18              
19 2     2   703 use Moose;
  2         617261  
  2         19  
20             extends 'Business::NAB::CSV';
21 2     2   20248 no warnings qw/ experimental::signatures /;
  2         5  
  2         124  
22              
23 2         542 use Business::NAB::Types qw/
24             add_max_string_attribute
25 2     2   906 /;
  2         9  
26              
27             =head1 ATTRIBUTES
28              
29             All are Str types, required, except where stated
30              
31             =over
32              
33             =item text
34              
35             =back
36              
37             =cut
38              
39 7     7   28 sub _record_type { '100' }
40              
41             sub _attributes {
42              
43 9     9   48 return qw/
44             text
45             /;
46             }
47              
48             foreach my $str_attr (
49             __PACKAGE__->_attributes
50             ) {
51             __PACKAGE__->add_max_string_attribute(
52             $str_attr,
53             is => 'ro',
54             required => 1,
55             );
56             }
57              
58             __PACKAGE__->meta->make_immutable;