Class: Fog::Parsers::AWS::AutoScaling::DescribeAdjustmentTypes
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::AWS::AutoScaling::DescribeAdjustmentTypes
- Defined in:
- lib/fog/aws/parsers/auto_scaling/describe_adjustment_types.rb
Instance Method Summary collapse
- #end_element(name) ⇒ Object
- #reset ⇒ Object
- #reset_adjustment_type ⇒ Object
- #start_element(name, attrs = []) ⇒ Object
Instance Method Details
#end_element(name) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_adjustment_types.rb', line 24 def end_element(name) case name when 'member' if @in_adjustment_types @results['AdjustmentTypes'] << @adjustment_type reset_adjustment_type end when 'AdjustmentType' @adjustment_type[name] = value when 'AdjustmentTypes' @in_adjustment_types = false when 'RequestId' @response['ResponseMetadata'][name] = value when 'DescribeAdjustmentTypesResponse' @response['DescribeAdjustmentTypesResult'] = @results end end |
#reset ⇒ Object
6 7 8 9 10 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_adjustment_types.rb', line 6 def reset reset_adjustment_type @results = { 'AdjustmentTypes' => [] } @response = { 'DescribeAdjustmentTypesResult' => {}, 'ResponseMetadata' => {} } end |
#reset_adjustment_type ⇒ Object
12 13 14 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_adjustment_types.rb', line 12 def reset_adjustment_type @adjustment_type = {} end |
#start_element(name, attrs = []) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/fog/aws/parsers/auto_scaling/describe_adjustment_types.rb', line 16 def start_element(name, attrs = []) super case name when 'AdjustmentTypes' @in_adjustment_types = true end end |