Method: Fog::Parsers::AWS::Elasticache::EngineDefaultsParser#end_element

Defined in:
lib/fog/aws/parsers/elasticache/engine_defaults_parser.rb

#end_element(name) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/fog/aws/parsers/elasticache/engine_defaults_parser.rb', line 33

def end_element(name)
  case name
  when 'CacheParameterGroupFamily'
    @engine_defaults[name] = value
  when 'CacheNodeTypeSpecificParameter', 'Parameter'
    if not @parameter.empty?
      @engine_defaults["#{name}s"] << @parameter
    end
  when 'AllowedValues', 'DataType', 'Description', 'IsModifiable',
    'MinimumEngineVersion', 'ParameterName', 'ParameterValue', 'Source'
    @parameter[name] = value
  when 'CacheNodeType', 'Value'
    @node_specific_value[name] = value
  when 'CacheNodeTypeSpecificValue'
    if not @node_specific_value.empty?
      @parameter["#{name}s"] << @node_specific_value
    end
  else
    super
  end
end