Class: RightAws::RdsInterface::DescribeDbParametersParser

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

Overview

:nodoc:

Constant Summary

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



1413
1414
1415
# File 'lib/rds/right_rds_interface.rb', line 1413

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

#tagend(name) ⇒ Object



1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
# File 'lib/rds/right_rds_interface.rb', line 1421

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



1416
1417
1418
1419
1420
# File 'lib/rds/right_rds_interface.rb', line 1416

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