Sha256: 96fb658bec098d01487b4d3f3f93671743dc9e2f27c4ed75bf25c1bc3a823a6b

Contents?: true

Size: 638 Bytes

Versions: 115

Compression:

Stored size: 638 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

115 entries across 115 versions & 4 rubygems

Version Path
fog-0.7.2 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.7.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.7.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.6.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.5.3 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.5.2 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.5.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.5.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
phpfog-fog-0.4.1.3 lib/fog/terremark/parsers/shared/get_public_ips.rb
phpfog-fog-0.4.1.2 lib/fog/terremark/parsers/shared/get_public_ips.rb
phpfog-fog-0.4.1.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
phpfog-fog-0.4.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.4.1 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.4.0 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.3.34 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.3.33 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.3.32 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.3.31 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.3.30 lib/fog/terremark/parsers/shared/get_public_ips.rb
fog-0.3.29 lib/fog/terremark/parsers/shared/get_public_ips.rb