blib/lib/VM/EC2/ELB/PolicyAttributeType.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::ELB::PolicyAttributeType;
2  
3 =head1 NAME
4  
5 VM::EC2::ELB::PolicyAttributeType - Load Balancer Policy Attribute Type
6  
7 =head1 SYNOPSIS
8  
9 use VM::EC2;
10  
11 my $ec2 = VM::EC2->new(...);
12 my @policy_types = $ec2->describe_load_balancer_policy_types;
13 foreach my $type (@policy_types) {
14 print $type,': ',$type->Description,"\n";
15 foreach ($type->attribute_types) {
16 print $_->AttributeName,"\n ",
17 $_->AttributeType,"\n ",
18 $_->Cardinality,"\n ",
19 $_->DefaultValue,"\n ",
20 $_->Description,"\n ";
21 }
22 }
23  
24 =head1 DESCRIPTION
25  
26 This object is used to describe the ELB PolicyAttributeTypeDescription data
27 type.
28  
29 =head1 METHODS
30  
31 The following object methods are supported:
32
33 AttributeName -- The attribute name
34 AttributeType -- The attribute type
35 Cardinality -- Cardinality of the policy attribute
36 DefaultValue -- Default value for the attribute
37 Description -- Description of the attribute
38  
39 =head1 STRING OVERLOADING
40  
41 In string context, the object will return the Attribute Name.
42  
43 =head1 SEE ALSO
44  
45 L<VM::EC2>
46 L<VM::EC2::Generic>
47 L<VM::EC2::ELB::PolicyType>
48  
49 =head1 AUTHOR
50  
51 Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>.
52  
53 Copyright (c) 2012 Loyalty Methods, Inc.
54  
55 This package and its accompanying libraries is free software; you can
56 redistribute it and/or modify it under the terms of the GPL (either
57 version 1, or at your option, any later version) or the Artistic
58 License 2.0. Refer to LICENSE for the full license text. In addition,
59 please see DISCLAIMER.txt for disclaimers of warranty.
60  
61 =cut
62  
63 use strict;
64 use base 'VM::EC2::Generic';
65  
66 use overload
67 '""' => sub { shift->AttributeName },
68 fallback => 1;
69  
70 sub valid_fields {
71 my $self = shift;
72 return qw(AttributeName AttributeType Cardinality DefaultValue Description);
73 }
74  
75 1;