Class: RightAws::RdsInterface::DescribeReservedDBInstancesOfferingsParser
- Inherits:
-
RightAws::RightAWSParser
- Object
- RightAws::RightAWSParser
- RightAws::RdsInterface::DescribeReservedDBInstancesOfferingsParser
- Defined in:
- lib/rds/right_rds_interface.rb
Overview
DB Reserved Instances
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
#reset ⇒ Object
:nodoc:
1257 1258 1259 |
# File 'lib/rds/right_rds_interface.rb', line 1257 def reset @result = { :reserved_db_instances_offerings => [] } end |
#tagend(name) ⇒ Object
1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 |
# File 'lib/rds/right_rds_interface.rb', line 1265 def tagend(name) case name when 'Marker' then @result[:marker] = @text when 'MaxRecords' then @result[:max_records] = @text.to_i when 'DBInstanceClass' then @item[:instance_class] = @text when 'Duration' then @item[:duration] = @text.to_i when 'FixedPrice' then @item[:fixed_price] = @text.to_f when 'UsagePrice' then @item[:usage_price] = @text.to_f when 'MultiAZ' then @item[:multi_az] = (@text == 'true') when 'ProductDescription' then @item[:product_description] = @text when 'ReservedDBInstancesOfferingId' then @item[:aws_id] = @text when 'ReservedDBInstancesOffering' then @result[:reserved_db_instances_offerings] << @item end end |
#tagstart(name, attributes) ⇒ Object
1260 1261 1262 1263 1264 |
# File 'lib/rds/right_rds_interface.rb', line 1260 def (name, attributes) case name when 'ReservedDBInstancesOffering' then @item = {} end end |