Class: RightAws::RdsInterface::DescribeDBEngineVersionsParser

Inherits:
RightAws::RightAWSParser show all
Defined in:
lib/rds/right_rds_interface.rb

Overview


DB Engine Versions

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

#resetObject

:nodoc:



1510
1511
1512
# File 'lib/rds/right_rds_interface.rb', line 1510

def reset
  @result = { :db_engine_versions => [] }
end

#tagend(name) ⇒ Object



1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
# File 'lib/rds/right_rds_interface.rb', line 1523

def tagend(name)
  case name
  when 'Marker'                 then @result[:marker]                  = @text
  when 'MaxRecords'             then @result[:max_records]             = @text.to_i
  when 'DBParameterGroupFamily' then @item[:db_parameter_group_family] = @text
  when 'Engine'                 then @item[:engine]                    = @text
  when 'EngineVersion'          then @item[:engine_version]            = @text
  when 'DBEngineDescription'    then @item[:db_engine_description]     = @text
  when 'DBEngineVersionDescription' then @item[:db_engine_version_description] = @text
  when 'DBEngineVersion'        then @result[:db_engine_versions]     << @item
  else
    case full_tag_name
    when %r{DefaultCharacterSet/CharacterSetDescription$}    then @item[:default_character_set][:description] = @text
    when %r{DefaultCharacterSet/CharacterSetName$}           then @item[:default_character_set][:name]        = @text
    when %r{SupportedCharacterSets/CharacterSet/CharacterSetDescription$} then @set[:description] = @text
    when %r{SupportedCharacterSets/CharacterSet/CharacterSetName$}        then @set[:name]        = @text
    when %r{SupportedCharacterSets/CharacterSet$}                         then (@item[:supported_character_sets] ||= []) << @set
    end
  end
end

#tagstart(name, attributes) ⇒ Object



1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
# File 'lib/rds/right_rds_interface.rb', line 1513

def tagstart(name, attributes)
  case name
  when 'DBEngineVersion' then @item = {}
  else
    case full_tag_name
    when %r{DefaultCharacterSet$}    then @item[:default_character_set] = {}
    when %r{SupportedCharacterSets/CharacterSet$} then @set = {}
    end
  end
end