Class: Fog::Parsers::AWS::RDS::DescribeDBParameters

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/aws/parsers/rds/describe_db_parameters.rb

Instance Method Summary collapse

Instance Method Details

#end_element(name) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/fog/aws/parsers/rds/describe_db_parameters.rb', line 16

def end_element(name)
  case name
  when 'ParameterValue' then @parameter['ParameterValue'] = value
  when 'DataType' then @parameter['DataType'] = value
  when 'AllowedValues' then @parameter['AllowedValues'] = value
  when 'Source' then @parameter['Source'] = value
  when 'IsModifiable' then
    @parameter['IsModifiable'] =  value == 'true' ? true : false
  when 'Description' then @parameter['Description'] = value
  when 'ApplyType' then @parameter['ApplyType'] = value
  when 'ParameterName' then @parameter['ParameterName'] = value
  when 'Parameter'
    @parameters << @parameter
    @parameter = {}
  when 'Marker'
    @response['DescribeDBParametersResult']['Marker'] = value
  when 'Parameters'
    @response['DescribeDBParametersResult']['Parameters'] = @parameters
  when 'RequestId'
    @response['ResponseMetadata'][name] = value
  end
end

#resetObject



6
7
8
9
10
# File 'lib/fog/aws/parsers/rds/describe_db_parameters.rb', line 6

def reset
  @response = { 'DescribeDBParametersResult' =>{}, 'ResponseMetadata' => {} }
  @parameter = {}
  @parameters = []
end

#start_element(name, attrs = []) ⇒ Object



12
13
14
# File 'lib/fog/aws/parsers/rds/describe_db_parameters.rb', line 12

def start_element(name, attrs = [])
  super
end