Sha256: a6dac951edc4a950139329f0c0ebb1aca001e1a39def2eb72c0e1516f60e1080

Contents?: true

Size: 447 Bytes

Versions: 53

Compression:

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

53 entries across 53 versions & 15 rubygems

Version Path
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
fog-1.3.1 lib/fog/terremark/parsers/shared/public_ip.rb
fog-1.3.0 lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
fog-1.2.0 lib/fog/terremark/parsers/shared/public_ip.rb
ktheory-fog-1.1.2 lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
fog-1.1.2 lib/fog/terremark/parsers/shared/public_ip.rb
fog_tractical-1.1.4 lib/fog/terremark/parsers/shared/public_ip.rb
fog_tractical-1.1.3 lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
fog-1.1.1 lib/fog/terremark/parsers/shared/public_ip.rb
fog-1.1.0 lib/fog/terremark/parsers/shared/public_ip.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/parsers/shared/public_ip.rb
tag-fog-1.0.1 lib/fog/terremark/parsers/shared/public_ip.rb