Class: RightAws::RdsInterface::DescribeDbParametersParser

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

Overview

:nodoc:

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



914
915
916
# File 'lib/rds/right_rds_interface.rb', line 914

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

#tagend(name) ⇒ Object



922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
# File 'lib/rds/right_rds_interface.rb', line 922

def tagend(name)
  case name
  when 'Marker'               then @result[:marker]       = @text
  when 'MaxRecords'           then @result[:max_records]  = @text.to_i
  when 'DBParameterGroupName' then @result[:group_name]   = @text # DescribeDbParametersResponse
  when 'Engine'               then @result[:engine]       = @text # DescribeDBEngineDefaultParametersResponse
  when 'DataType'      then @item[:data_type]     = @text
  when 'Source'        then @item[:source]        = @text
  when 'Description'   then @item[:description]   = @text
  when 'IsModifiable'  then @item[:is_modifiable] = @text[/true/] ? true : false
  when 'ApplyType'     then @item[:apply_type]     = @text
  when 'AllowedValues' then @item[:allowed_values] = @text
  when 'ParameterName' then @item[:name]           = @text
  when 'ParameterValue' then @item[:value]         = @text
  when 'Parameter'     then @result[:parameters] << @item
  end
end

#tagstart(name, attributes) ⇒ Object



917
918
919
920
921
# File 'lib/rds/right_rds_interface.rb', line 917

def tagstart(name, attributes)
  case name
    when 'Parameter' then @item = {}
  end
end