blib/lib/VM/EC2/ELB/PolicyTypeDescription.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
valid_fields
2.0
PolicyAttributeTypeDescriptions
2.0
attribute_types
2.0
CRAP 2.0
1 package VM::EC2::ELB::PolicyTypeDescription;
2  
3 =head1 NAME
4  
5 VM::EC2::ELB::PolicyTypeDescription - Elastic Load Balancer Policy 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  
14 =head1 DESCRIPTION
15  
16 This object is used to represent the PolicyTypeDescription data type, which
17 is in the result of a DescribeLoadBalancerPolicyTypes ELB API call.
18  
19 =head1 METHODS
20  
21 The following object methods are supported:
22
23 PolicyTypeName -- The policy type name
24 Description -- Description
25 PolicyAttributeTypeDescriptions -- A series of L<VM::EC2::ELB::PolicyAttributeType>
26 objects
27 attribute_types -- Alias for PolicyAttributeTypeDescriptions
28  
29 =head1 STRING OVERLOADING
30  
31 In string context, the object returns the Policy Type Name.
32  
33 =head1 SEE ALSO
34  
35 L<VM::EC2>
36 L<VM::EC2::Generic>
37 L<VM::EC2::ELB>
38 L<VM::EC2::ELB::PolicyAttributeTypeDescription>
39  
40 =head1 AUTHOR
41  
42 Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>.
43  
44 Copyright (c) 2012 Loyalty Methods, Inc.
45  
46 This package and its accompanying libraries is free software; you can
47 redistribute it and/or modify it under the terms of the GPL (either
48 version 1, or at your option, any later version) or the Artistic
49 License 2.0. Refer to LICENSE for the full license text. In addition,
50 please see DISCLAIMER.txt for disclaimers of warranty.
51  
52 =cut
53  
54 use strict;
55 use base 'VM::EC2::Generic';
56 use VM::EC2::ELB::PolicyAttributeType;
57  
58 use overload
59 '""' => sub { shift->PolicyTypeName },
60 fallback => 1;
61  
62 sub valid_fields {
63 my $self = shift;
64 return qw(Description PolicyAttributeTypeDescriptions PolicyTypeName);
65 }
66  
67 sub PolicyAttributeTypeDescriptions {
68 my $self = shift;
69 my $patd = $self->SUPER::PolicyAttributeTypeDescriptions;
70 return map { VM::EC2::ELB::PolicyAttributeType->new($_,$self->aws) } @{$patd->{member}};
71 }
72  
73 sub attribute_types { shift->PolicyAttributeTypeDescriptions }
74  
75 1;