File Coverage

blib/lib/Net/Amazon/EC2/EbsBlockDevice.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Net::Amazon::EC2::EbsBlockDevice;
2 2     2   1245 use strict;
  2         5  
  2         97  
3 2     2   13 use Moose;
  2         6  
  2         16  
4              
5             =head1 NAME
6              
7             Net::Amazon::EC2::Net::Amazon::EC2::EbsBlockDevice
8              
9             =head1 DESCRIPTION
10              
11             A class representing a EBS block device
12              
13             =head1 ATTRIBUTES
14              
15             =over
16              
17             =item snapshot_id (optional)
18              
19             The EBS snapshot id.
20              
21             =item volume_size (optional)
22              
23             The size, in GiB (1GiB = 2^30 octects)
24              
25             =item delete_on_termination (optional)
26              
27             Specifies whether the Amazon EBS volume is deleted on instance termination.
28              
29             =back
30              
31             =cut
32              
33             has 'snapshot_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
34             has 'volume_size' => ( is => 'ro', isa => 'Maybe[Int]', required => 0 );
35             has 'delete_on_termination' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
36              
37             __PACKAGE__->meta->make_immutable();
38              
39             =head1 AUTHOR
40              
41             Jeff Kim <cpan@chosec.com>
42              
43             =head1 COPYRIGHT
44              
45             Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
46             under the same terms as Perl itself.
47              
48             =cut
49              
50 2     2   8557 no Moose;
  2         3  
  2         10  
51             1;