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



1207
1208
1209
# File 'lib/rds/right_rds_interface.rb', line 1207

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

#tagend(name) ⇒ Object



1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
# File 'lib/rds/right_rds_interface.rb', line 1215

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 'DBParameterGroupFamily' then @result[:db_parameter_group_family] = @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')
  when 'ApplyType'            then @item[:apply_type]     = @text
  when 'ApplyMethod'          then @item[:apply_method]   = @text
  when 'MinimumEngineVersion' then @item[:minimum_engine_version] = @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



1210
1211
1212
1213
1214
# File 'lib/rds/right_rds_interface.rb', line 1210

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