Sha256: 7087a76048fe43d299b57abe663233ca57540d8332b6b7eaf5d2d1b11039d784

Contents?: true

Size: 603 Bytes

Versions: 116

Compression:

Stored size: 603 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module EC2

        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

116 entries across 116 versions & 2 rubygems

Version Path
fog-0.0.82 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.81 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.80 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.79 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.78 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.77 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.76 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.75 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.74 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.73 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.72 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.71 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.70 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.69 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.68 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.67 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.66 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.65 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.64 lib/fog/aws/parsers/ec2/describe_addresses.rb
fog-0.0.63 lib/fog/aws/parsers/ec2/describe_addresses.rb