Sha256: 3ffb34f738650147774d54cede5e30b2beb0ab43d5f1e699866eea384260d172

Contents?: true

Size: 653 Bytes

Versions: 11

Compression:

Stored size: 653 Bytes

Contents

module Fog
  module Parsers
    module Terremark
      module Shared

        class GetNetworkIps< Fog::Parsers::Base

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

          def start_element(name,attributes=[])
            @value = ''
          end

          def end_element(name)
            case name
            when 'Name', 'Status', 'Server'
              @ip_address[name.downcase] = @value
            when 'IpAddress'
              @response['IpAddresses'] << @ip_address
              @ip_address = {}
            end
          end

        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fog-0.0.89 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.88 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.87 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.86 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.85 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.84 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.83 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.82 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.81 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.80 lib/fog/terremark/parsers/shared/get_network_ips.rb
fog-0.0.79 lib/fog/terremark/parsers/shared/get_network_ips.rb