blib/lib/VM/EC2/ELB/Policies/LBCookieStickinessPolicy.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::Policies::LBCookieStickinessPolicy;
2  
3 =head1 NAME
4  
5 VM::EC2::ELB::Policies::LBCookieStickinessPolicy - Object describing a
6 Load Balancer Cookie Stickiness Policy
7  
8 =head1 SYNOPSIS
9  
10 use VM::EC2;
11  
12 $ec2 = VM::EC2->new(...);
13 $lb = $ec2->describe_load_balancers('my-lb');
14 $p = $lb->Policies;
15  
16 @lb_policies = $p->LBCookieStickinessPolicies;
17  
18 =head1 DESCRIPTION
19  
20 This object is used to describe the parameters used to create an
21  
22 =head1 METHODS
23  
24 The following object methods are supported:
25
26 PolicyName -- The name of the policy
27 CookieExpirationPeriod -- Expiration period for the policy
28  
29 =head1 STRING OVERLOADING
30  
31 In string context, the object will return the policy 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::Policies>
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  
57 use overload
58 '""' => sub { shift->PolicyName },
59 fallback => 1;
60  
61 sub valid_fields {
62 my $self = shift;
63 return qw(CookieExpirationPeriod PolicyName);
64 }
65  
66 1;