Sha256: 73d67122c151afc662ee71aa88e32de17a2373445c07b8725ac2c1e55eafa356

Contents?: true

Size: 1.21 KB

Versions: 98

Compression:

Stored size: 1.21 KB

Contents

module Fog
  module Parsers
    module AWS
      module AutoScaling
        class DescribeScalingProcessTypes < Fog::Parsers::Base
          def reset
            reset_process_type
            @results = { 'Processes' => [] }
            @response = { 'DescribeScalingProcessTypesResult' => {}, 'ResponseMetadata' => {} }
          end

          def reset_process_type
            @process_type = {}
          end

          def start_element(name, attrs = [])
            super
            case name
            when 'Processes'
              @in_processes = true
            end
          end

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

            when 'ProcessName'
              @process_type[name] = value

            when 'Processes'
              @in_processes = false

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

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

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-3.0.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-2.0.1 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-2.0.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-1.4.1 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-1.4.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-1.3.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-1.2.1 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-1.2.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-1.1.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-1.0.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.13.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.12.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.11.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.10.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.9.4 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.9.3 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.9.2 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.9.1 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb
fog-aws-0.9.0 lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb