File Coverage

blib/lib/App/SpamcupNG/Warning/Yum.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 2 2 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             use strict;
2 12     12   59 use warnings;
  12         19  
  12         244  
3 12     12   43 use parent 'App::SpamcupNG::Warning';
  12         17  
  12         214  
4 12     12   52  
  12         15  
  12         77  
5             our $VERSION = '0.015'; # VERSION
6              
7             =head1 NAME
8              
9             App::SpamcupNG::Warning::Yum - representation of a warning about the SPAM
10             report being fresh.
11              
12             =head1 SYNOPSIS
13              
14             See L<App::SpamcupNG::Warning::Factory> instead.
15              
16             =head1 DESCRIPTION
17              
18             Everytime Spamcop receives a SPAM report that it considers as fresh, this
19             warning is available on the website HTML.
20              
21             =head1 METHODS
22              
23             =head2 new
24              
25             Overrided from parent class.
26              
27             =cut
28              
29             my ( $class, $messages_ref ) = @_;
30             my $self = $class->SUPER::new( [ $messages_ref->[0] ] );
31 1     1 1 3 return $self;
32 1         59 }
33 1         4  
34             =head2 message
35              
36             Overrided from parent class.
37              
38             =cut
39              
40             my $self = shift;
41             return $self->{message}->[0];
42             }
43 1     1 1 2  
44 1         5 =head1 AUTHOR
45              
46             Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>
47              
48             =head1 COPYRIGHT AND LICENSE
49              
50             This software is copyright (c) 2018 of Alceu Rodrigues de Freitas Junior,
51             E<lt>arfreitas@cpan.orgE<gt>
52              
53             This file is part of App-SpamcupNG distribution.
54              
55             App-SpamcupNG is free software: you can redistribute it and/or modify it under
56             the terms of the GNU General Public License as published by the Free Software
57             Foundation, either version 3 of the License, or (at your option) any later
58             version.
59              
60             App-SpamcupNG is distributed in the hope that it will be useful, but WITHOUT
61             ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
62             FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
63              
64             You should have received a copy of the GNU General Public License along with
65             App-SpamcupNG. If not, see <http://www.gnu.org/licenses/>.
66              
67             =cut
68              
69             1;