Sha256: e3dcdd1af9c18e39f78a29b5c55d78f036a397eaa75d85ffeab0714c6c1e0e29

Contents?: true

Size: 636 Bytes

Versions: 53

Compression:

Stored size: 636 Bytes

Contents

module Fog
  module Parsers
    module Terremark
      module Shared

        class GetPublicIps< Fog::Parsers::Base

          def reset
            @ip_address = {}
            @response = { 'PublicIpAddresses' => [] }
          end

          def end_element(name)
            case name
            when 'Href', 'Name'
              @ip_address[name.downcase] = value
            when 'Id'
              @ip_address['id'] = value.to_i
            when 'PublicIPAddress'
              @response['PublicIpAddresses'] << @ip_address
              @ip_address = {}
            end
          end

        end

      end
    end
  end
end

Version data entries

53 entries across 53 versions & 15 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-nirvanix-1.8.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-parser-fix-1.6.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-test-again-1.6.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-parser-fix-1.6.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-1.9.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/terremark/parsers/shared/get_public_ips.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-sgonyea-1.8.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-1.8.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-1.7.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-1.6.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-1.5.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
rackspace-fog-1.4.2 lib/rackspace-fog/terremark/parsers/shared/get_public_ips.rb
fog-1.4.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/get_public_ips.rb
michiels-fog-1.3.1 lib/fog/terremark/parsers/shared/get_public_ips.rb