blib/lib/VM/EC2/DB/PendingModifiedValues.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
valid_fields
2.0
MultiAZ
2.0
BEGIN
2.0
CRAP 2.0
1 package VM::EC2::DB::PendingModifiedValues;
2  
3 =head1 NAME
4  
5 VM::EC2::DB::PendingModifiedValues - An RDS Database Pending Modifed Values object
6  
7 =head1 SYNOPSIS
8  
9 use VM::EC2;
10  
11 $ec2 = VM::EC2->new(...);
12 $db = $ec2->modify_db_instance(...);
13 $pending = $db->PendingModifiedValues;
14 foreach $p ($pending->valid_fields) {
15 print $p,' ',$pending->$p,"\n" if $pending->$p;
16 }
17  
18 =head1 DESCRIPTION
19  
20 This object represents the changes to a DB instance that are currently pending.
21  
22 =head1 STRING OVERLOADING
23  
24 none
25  
26 =head1 SEE ALSO
27  
28 L<VM::EC2>
29 L<VM::EC2::Generic>
30 L<VM::EC2::DB::Instance>
31  
32 =head1 AUTHOR
33  
34 Lance Kinley E<lt>lkinley@loyaltymethods.comE<gt>.
35  
36 Copyright (c) 2013 Loyalty Methods, Inc.
37  
38 This package and its accompanying libraries is free software; you can
39 redistribute it and/or modify it under the terms of the GPL (either
40 version 1, or at your option, any later version) or the Artistic
41 License 2.0. Refer to LICENSE for the full license text. In addition,
42 please see DISCLAIMER.txt for disclaimers of warranty.
43  
44 =cut
45  
46 use strict;
47 use base 'VM::EC2::Generic';
48  
49 sub valid_fields {
50 my $self = shift;
51 return qw(
52 AllocatedStorage
53 BackupRetentionPeriod
54 DBInstanceClass
55 DBInstanceIdentifier
56 EngineVersion
57 Iops
58 MasterUserPassword
59 MultiAZ
60 Port
61 );
62 }
63  
64 sub MultiAZ {
65 my $self = shift;
66 my $multi_az = $self->SUPER::MultiAZ;
67 return $multi_az eq 'true';
68 }
69  
70 1;