Class: RightAws::RdsInterface::DescribeDbSnapshotsParser
- Inherits:
-
RightAws::RightAWSParser
- Object
- RightAws::RightAWSParser
- RightAws::RdsInterface::DescribeDbSnapshotsParser
- Defined in:
- lib/rds/right_rds_interface.rb
Overview
DB Snapshots
Constant Summary
Constants inherited from RightAws::RightAWSParser
RightAws::RightAWSParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from RightAws::RightAWSParser
#full_tag_name, #result, #tag, #xml_lib, #xmlpath
Instance Method Summary collapse
Methods inherited from RightAws::RightAWSParser
#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=
Constructor Details
This class inherits a constructor from RightAws::RightAWSParser
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser
Instance Method Details
permalink #reset ⇒ Object
:nodoc:
1173 1174 1175 |
# File 'lib/rds/right_rds_interface.rb', line 1173 def reset @result = { :db_snapshots => [] } end |
permalink #tagend(name) ⇒ Object
[View source]
1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 |
# File 'lib/rds/right_rds_interface.rb', line 1181 def tagend(name) case name when 'Marker' then @result[:marker] = @text when 'MaxRecords' then @result[:max_records] = @text.to_i # ? when 'Engine' then @item[:engine] = @text when 'EngineVersion' then @item[:engine_version] = @text when 'InstanceCreateTime' then @item[:instance_create_time] = @text when 'Port' then @item[:endpoint_port] = @text.to_i when 'Status' then @item[:status] = @text when 'AvailabilityZone' then @item[:availability_zone] = @text when 'MasterUsername' then @item[:master_username] = @text when 'AllocatedStorage' then @item[:allocated_storage] = @text.to_i when 'SnapshotCreateTime' then @item[:create_time] = @text when 'DBInstanceIdentifier' then @item[:instance_aws_id] = @text when 'DBSnapshotIdentifier' then @item[:aws_id] = @text when 'DBSnapshot' then @result[:db_snapshots] << @item end end |
permalink #tagstart(name, attributes) ⇒ Object
[View source]
1176 1177 1178 1179 1180 |
# File 'lib/rds/right_rds_interface.rb', line 1176 def (name, attributes) case name when 'DBSnapshot' then @item = {} end end |