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

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
valid_fields
2.0
PolicyNames
2.0
Listener
2.0
CRAP 2.0
1 package VM::EC2::ELB::ListenerDescription;
2  
3 =head1 NAME
4  
5 VM::EC2::ELB:ListenerDescription - Load Balancer Listener Description
6  
7 =head1 SYNOPSIS
8  
9 use VM::EC2;
10  
11 my $ec2 = VM::EC2->new(...);
12 my $lb = $ec2->describe_load_balancers('my-lb');
13 my @lds = $lb->ListenerDescriptions;
14  
15 =head1 DESCRIPTION
16  
17 This object is used to describe the ListenerDescription data type,
18 which is part of the response elements of a DescribeLoadBalancers
19 API call.
20  
21 =head1 METHODS
22  
23 The following object methods are supported:
24
25 PolicyNames -- Returns the policy names associated with the listener
26 Listener -- returns a L<VM::EC2::ELB::Listener> object
27  
28 =head1 STRING OVERLOADING
29  
30 NONE.
31  
32 =head1 SEE ALSO
33  
34 L<VM::EC2>
35 L<VM::EC2::Generic>
36 L<VM::EC2::Listener>
37  
38 =head1 AUTHOR
39  
40 Lance Kinley E>lb>lkinley@loyaltymethods.comE>gt>.
41  
42 Copyright (c) 2012 Loyalty Methods, Inc.
43  
44 This package and its accompanying libraries is free software; you can
45 redistribute it and/or modify it under the terms of the GPL (either
46 version 1, or at your option, any later version) or the Artistic
47 License 2.0. Refer to LICENSE for the full license text. In addition,
48 please see DISCLAIMER.txt for disclaimers of warranty.
49  
50 =cut
51  
52 use strict;
53 use base 'VM::EC2::Generic';
54 use VM::EC2::ELB::Listener;
55  
56 sub valid_fields {
57 my $self = shift;
58 return qw(PolicyNames Listener);
59 }
60  
61 sub PolicyNames {
62 my $self = shift;
63 my $policies = $self->SUPER::PolicyNames or return;
64 return @{$policies->{member}};
65 }
66  
67 sub Listener {
68 my $self = shift;
69 my $listener = $self->SUPER::Listener;
70 return VM::EC2::ELB::Listener->new($listener,$self->aws);
71 }
72  
73 1;