Sha256: c60ebe2688ee3534508c3d4589ce690a83cb49c621d6ad2c6343d483b632b731

Contents?: true

Size: 449 Bytes

Versions: 115

Compression:

Stored size: 449 Bytes

Contents

module Fog
  module Parsers
    module Terremark
      module Shared

        class PublicIp < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'Href', 'Name'
              @response[name.downcase] = @value
            when 'Id'
              @response['id'] = @value.to_i
            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/public_ip.rb
fog-0.7.1 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.7.0 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.6.0 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.5.3 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.5.2 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.5.1 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.5.0 lib/fog/terremark/parsers/shared/public_ip.rb
phpfog-fog-0.4.1.3 lib/fog/terremark/parsers/shared/public_ip.rb
phpfog-fog-0.4.1.2 lib/fog/terremark/parsers/shared/public_ip.rb
phpfog-fog-0.4.1.1 lib/fog/terremark/parsers/shared/public_ip.rb
phpfog-fog-0.4.1 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.4.1 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.4.0 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.3.34 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.3.33 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.3.32 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.3.31 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.3.30 lib/fog/terremark/parsers/shared/public_ip.rb
fog-0.3.29 lib/fog/terremark/parsers/shared/public_ip.rb