File Coverage

blib/lib/Net/Amazon/EC2/Events.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Net::Amazon::EC2::Events;
2 2     2   1185 use Moose;
  2         3  
  2         14  
3              
4             =head1 NAME
5              
6             Net::Amazon::EC2::Events
7              
8             =head1 DESCRIPTION
9              
10             A class representing a EC2 Events block
11              
12             =head1 ATTRIBUTES
13              
14             =over
15              
16             =item code (required)
17              
18             The code of the event.
19              
20             =item description (required)
21              
22             The description of the event.
23              
24             =item not_before (required)
25              
26             The date the event will not occur before.
27              
28             =item not_after (optional)
29              
30             The date the event will not occur after.
31              
32             =back
33              
34             =cut
35              
36             has 'code' => ( is => 'ro', isa => 'Str', required => 1 );
37             has 'description' => ( is => 'ro', isa => 'Str', required => 1 );
38             has 'not_before' => ( is => 'ro', isa => 'Str', required => 1 );
39             has 'not_after' => ( is => 'ro', isa => 'Str', required => 0 );
40              
41             __PACKAGE__->meta->make_immutable();
42              
43             =head1 AUTHOR
44              
45             Matt West <https://github.com/mhwest13>
46              
47             =head1 COPYRIGHT
48              
49             Copyright (c) 2014 Matt West. This program is free software; you can redistribute it and/or modify it
50             under the same terms as Perl itself.
51              
52             =cut
53              
54 2     2   11761 no Moose;
  2         3  
  2         10  
55             1;