File Coverage

blib/lib/Net/Amazon/EC2/AvailabilityZone.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::AvailabilityZone;
2 2     2   22317 use Moose;
  2         363229  
  2         13  
3              
4             =head1 NAME
5              
6             Net::Amazon::EC2::AvailabilityZone
7              
8             =head1 DESCRIPTION
9              
10             A class representing an availability zone
11              
12             =head1 ATTRIBUTES
13              
14             =over
15              
16             =item zone_name (required)
17              
18             Name of the Availability Zone.
19              
20             =item zone_state (required)
21              
22             State of the Availability Zone.
23              
24             =item region_name (required)
25              
26             Name of the region.
27              
28             =item messages (optional)
29              
30             An array ref of Net::Amazon::EC2::AvailabilityZoneMessage objects representing messages for this zone (if any)
31              
32             =back
33              
34             =cut
35              
36             has 'zone_name' => ( is => 'ro', isa => 'Str', required => 1 );
37             has 'zone_state' => ( is => 'ro', isa => 'Str', required => 1 );
38             has 'region_name' => ( is => 'ro', isa => 'Maybe[Str]', required => 1 );
39             has 'messages' => ( is => 'ro', isa => 'ArrayRef[Net::Amazon::EC2::AvailabilityZoneMessage]|Undef', required => 0 );
40              
41             __PACKAGE__->meta->make_immutable();
42              
43             =head1 AUTHOR
44              
45             Jeff Kim <cpan@chosec.com>
46              
47             =head1 COPYRIGHT
48              
49             Copyright (c) 2006-2010 Jeff Kim. 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   9943 no Moose;
  2         3  
  2         10  
55             1;