Class: Fog::Parsers::AWS::AutoScaling::DescribeScalingProcessTypes

Inherits:
Base
  • Object
show all
Defined in:
lib/rackspace-fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#attr_value, #characters, #initialize, #start_element, #value

Constructor Details

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

Instance Method Details

#end_element(name) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/rackspace-fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb', line 18

def end_element(name)
  case name
  when 'member'
    @results['Processes'] << @process_type
    reset_process_type

  when 'ProcessName'
    @process_type[name] = value

  when 'RequestId'
    @response['ResponseMetadata'][name] = value

  when 'DescribeScalingProcessTypesResponse'
    @response['DescribeScalingProcessTypesResult'] = @results
  end
end

#resetObject



8
9
10
11
12
# File 'lib/rackspace-fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb', line 8

def reset
  reset_process_type
  @results = { 'Processes' => [] }
  @response = { 'DescribeScalingProcessTypesResult' => {}, 'ResponseMetadata' => {} }
end

#reset_process_typeObject



14
15
16
# File 'lib/rackspace-fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb', line 14

def reset_process_type
  @process_type = {}
end