File Coverage

blib/lib/Business/NAB/Australian/DirectEntry/Report/FailedSummary.pm
Criterion Covered Total %
statement 27 27 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod n/a
total 36 36 100.0


line stmt bran cond sub pod time code
1             package Business::NAB::Australian::DirectEntry::Report::FailedSummary;
2             $Business::NAB::Australian::DirectEntry::Report::FailedSummary::VERSION = '0.03';
3             =head1 NAME
4              
5             Business::NAB::Australian::DirectEntry::Report::ValueSummary
6              
7             Extends L<Business::NAB::Australian::DirectEntry::Report::ValueSummary>
8              
9             =head1 SYNOPSIS
10              
11             =head1 DESCRIPTION
12              
13             Class for failed summary record in the Australian Direct Entry Report file
14              
15             =cut;
16              
17 2     2   1053956 use strict;
  2         5  
  2         76  
18 2     2   8 use warnings;
  2         4  
  2         132  
19 2     2   10 use feature qw/ signatures /;
  2         3  
  2         237  
20              
21 2     2   471 use Moose;
  2         565864  
  2         19  
22             extends 'Business::NAB::Australian::DirectEntry::Report::ValueSummary';
23 2     2   15963 no warnings qw/ experimental::signatures /;
  2         7  
  2         141  
24              
25 2         565 use Business::NAB::Types qw/
26             add_max_string_attribute
27 2     2   826 /;
  2         55  
28              
29             =head1 ATTRIBUTES
30              
31             All are Str types, required, except where stated. Extra attributes are
32             inherited from L<Business::NAB::Australian::DirectEntry::Report::ValueSummary>.
33              
34             =over
35              
36             =item failed_item_treatment_option
37              
38             =item text
39              
40             =back
41              
42             =cut
43              
44 6     6   22 sub _record_type { '62' }
45              
46 7     7   19 sub _attributes ( $self ) {
  7         15  
  7         14  
47              
48             return (
49 7         50 $self->SUPER::_attributes,
50             $self->_extra_attributes,
51             );
52             }
53              
54 9     9   22 sub _extra_attributes ( $self ) {
  9         20  
  9         16  
55              
56 9         41 return qw/
57             failed_item_treatment_option
58             text
59             /;
60             }
61              
62             foreach my $str_attr (
63             'sub_trancode',
64             __PACKAGE__->_extra_attributes,
65             ) {
66             __PACKAGE__->add_max_string_attribute(
67             $str_attr,
68             is => 'ro',
69             required => 1,
70             );
71             }
72              
73             __PACKAGE__->meta->make_immutable;