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

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

Instance Method Summary collapse

Instance Method Details

#end_element(name) ⇒ Object



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

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)


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

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

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



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

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