Class: Fog::Parsers::Redshift::AWS::DescribeDefaultClusterParameters

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

Instance Method Summary collapse

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_default_cluster_parameters.rb', line 30

def end_element(name)
  super
  case name
  when 'Marker', 'ParameterGroupFamily'
    @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) :parameter_group_family - (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_default_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_default_cluster_parameters.rb', line 22

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