Sha256: 610ecbcb61315430b317016702f3707b530dc558ee9363762b2943f5003aba7a

Contents?: true

Size: 605 Bytes

Versions: 23

Compression:

Stored size: 605 Bytes

Contents

module Fog
  module Parsers
    module Compute
      module AWS

        class DescribeAddresses < Fog::Parsers::Base

          def reset
            @address = {}
            @response = { 'addressesSet' => [] }
          end

          def end_element(name)
            case name
            when 'instanceId', 'publicIp'
              @address[name] = value
            when 'item'
              @response['addressesSet'] << @address
              @address = {}
            when 'requestId'
              @response[name] = value
            end
          end

        end

      end
    end
  end
end

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
fog-1.1.2 lib/fog/aws/parsers/compute/describe_addresses.rb
fog_tractical-1.1.4 lib/fog/aws/parsers/compute/describe_addresses.rb
fog_tractical-1.1.3 lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
fog-1.1.1 lib/fog/aws/parsers/compute/describe_addresses.rb
fog-1.1.0 lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
tag-fog-1.0.1 lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/compute/describe_addresses.rb
fog-1.0.0 lib/fog/aws/parsers/compute/describe_addresses.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/parsers/aws/describe_addresses.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/parsers/aws/describe_addresses.rb
fog-0.11.0 lib/fog/compute/parsers/aws/describe_addresses.rb
fog-0.10.0 lib/fog/compute/parsers/aws/describe_addresses.rb