blib/lib/VM/EC2/Instance/Placement.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
valid_fields
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package VM::EC2::Instance::Placement;
2  
3 =head1 NAME
4  
5 VM::EC2::Instance::Placement - Object describing an Amazon EC2 instance's placement
6  
7 =head1 SYNOPSIS
8  
9 use VM::EC2;
10  
11 $ec2 = VM::EC2->new(...);
12  
13 =head1 DESCRIPTION
14  
15 This object represents the placement of an instance in an Amazon EC2 availability region
16 and cluster group. It is returned by VM::EC2->describe_instances
17  
18 =head1 METHODS
19  
20 These object methods are supported:
21  
22 availabilityZone -- The availability zone of the instance.
23 groupName -- The name of the placement group in a
24 cluster computing instance.
25 tenancy -- Tenancy of the instance, e.g. "dedicated".
26  
27 =head1 STRING OVERLOADING
28  
29 When used in a string context, this object will interpolate the
30 availabilityZone.
31  
32 =head1 SEE ALSO
33  
34 L<VM::EC2>
35 L<VM::EC2::Generic>
36  
37 =head1 AUTHOR
38  
39 Lincoln Stein E<lt>lincoln.stein@gmail.comE<gt>.
40  
41 Copyright (c) 2011 Ontario Institute for Cancer Research
42  
43 This package and its accompanying libraries is free software; you can
44 redistribute it and/or modify it under the terms of the GPL (either
45 version 1, or at your option, any later version) or the Artistic
46 License 2.0. Refer to LICENSE for the full license text. In addition,
47 please see DISCLAIMER.txt for disclaimers of warranty.
48  
49 =cut
50  
51 use strict;
52 use base 'VM::EC2::Generic';
53  
54 use overload
55 '""' => sub {shift()->availabilityZone},
56 fallback => 1;
57  
58 sub valid_fields {
59 my $self = shift;
60 return qw(availabilityZone groupName tenancy);
61 }
62  
63 1;