File Coverage

blib/lib/Net/Amazon/EC2/ReservedInstanceOffering.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::ReservedInstanceOffering;
2 2     2   833 use Moose;
  2         5  
  2         17  
3              
4             =head1 NAME
5              
6             Net::Amazon::EC2::ReservedInstanceOffering
7              
8             =head1 DESCRIPTION
9              
10             A class representing a reserved instance offering.
11              
12             =head1 ATTRIBUTES
13              
14             =over
15              
16             =item reserved_instances_offering_id (required)
17              
18             The ID of the Reserved Instance offering.
19              
20             =item instance_type (required)
21              
22             The instance type on which the Reserved Instance can be used.
23              
24             =item availability_zone (required)
25              
26             The Availability Zone in which the Reserved Instance can be used.
27              
28             =item duration (required)
29              
30             The duration of the Reserved Instance, in seconds.
31              
32             =item usage_price (required)
33              
34             The usage price of the Reserved Instance, per hour.
35              
36             =item fixed_price (required)
37              
38             The purchase price of the Reserved Instance.
39              
40             =item product_description (required)
41              
42             The Reserved Instance description.
43              
44             =back
45              
46             =cut
47              
48             has 'reserved_instances_offering_id' => ( is => 'ro', isa => 'Str', required => 1 );
49             has 'instance_type' => ( is => 'ro', isa => 'Str', required => 1 );
50             has 'availability_zone' => ( is => 'ro', isa => 'Str', required => 1 );
51             has 'duration' => ( is => 'ro', isa => 'Str', required => 1 );
52             has 'usage_price' => ( is => 'ro', isa => 'Str', required => 1 );
53             has 'fixed_price' => ( is => 'ro', isa => 'Str', required => 1 );
54             has 'product_description' => ( is => 'ro', isa => 'Str', required => 1 );
55              
56             __PACKAGE__->meta->make_immutable();
57              
58             =head1 AUTHOR
59              
60             Jeff Kim <cpan@chosec.com>
61              
62             =head1 COPYRIGHT
63              
64             Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
65             under the same terms as Perl itself.
66              
67             =cut
68              
69 2     2   9908 no Moose;
  2         5  
  2         8  
70             1;