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.7.2 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.7.1 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.7.0 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.6.0 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.5.3 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.5.2 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.5.1 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.5.0 lib/fog/compute/parsers/aws/describe_regions.rb
phpfog-fog-0.4.1.3 lib/fog/compute/parsers/aws/describe_regions.rb
phpfog-fog-0.4.1.2 lib/fog/compute/parsers/aws/describe_regions.rb
phpfog-fog-0.4.1.1 lib/fog/compute/parsers/aws/describe_regions.rb
phpfog-fog-0.4.1 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.4.1 lib/fog/compute/parsers/aws/describe_regions.rb
fog-0.4.0 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.34 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.33 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.32 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.31 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.30 lib/fog/aws/parsers/compute/describe_regions.rb
fog-0.3.29 lib/fog/aws/parsers/compute/describe_regions.rb