Sha256: d3052f713e8f8488dcac8e49a6d65ed6819b0c3be1aebf4c5de1e2d904a6b847

Contents?: true

Size: 603 Bytes

Versions: 50

Compression:

Stored size: 603 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module Compute

        class DescribeRegions < Fog::Parsers::Base

          def reset
            @region = {}
            @response = { 'regionInfo' => [] }
          end

          def end_element(name)
            case name
            when 'item'
              @response['regionInfo'] << @region
              @region = {}
            when 'regionEndpoint', 'regionName'
              @region[name] = @value
            when 'requestId'
              @response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
fog-0.3.9 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.8 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.7 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.6 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.5 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.4 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.3 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.2 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.1 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.0 lib/fog/aws/parsers/compute/describe_regions.rb