Class: Fog::Parsers::Redshift::AWS::DescribeClusterParameters

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

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#attr_value, #characters, #end_element_namespace, #initialize, #start_element_namespace, #value

Constructor Details

This class inherits a constructor from Fog::Parsers::Base

Instance Method Details

#end_element(name) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameters.rb', line 30

def end_element(name)     
  super       
  case name
  when 'Marker'
    @response[name] = value
  when 'ParameterName', 'ParameterValue', 'Description', 'Source', 'DataType', 'AllowedValues', 'MinimumEngineVersion'
    @parameter[name] = value
  when 'IsModifiable'
    @parameter[name] = (value == "true")
  when 'Parameter'
    @response['Parameters'] << {name => @parameter}
    @parameter = {}
  end
end

#resetObject

:marker - (String) :parameters - (Array)

:parameter_name - (String)
:parameter_value - (String)
:description - (String)
:source - (String)
:data_type - (String)
:allowed_values - (String)
:is_modifiable - (Boolean)
:minimum_engine_version - (String)


18
19
20
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameters.rb', line 18

def reset
  @response = { 'Parameters' => [] }
end

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



22
23
24
25
26
27
28
# File 'lib/fog/aws/parsers/redshift/describe_cluster_parameters.rb', line 22

def start_element(name, attrs = [])
  super
  case name
  when 'Parameters'
    @parameter = {}
  end
end