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.28 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.27 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.26 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.25 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.24 lib/fog/aws/parsers/compute/describe_regions.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.23 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.22 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.21 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.20 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.19 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.18 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.17 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.16 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.15 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.14 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.13 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.12 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.11 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.10 lib/fog/aws/parsers/compute/describe_regions.rb