Sha256: 2aa486f184b5933242e59f4ba4c4d52dfc4cecef13d5486372b7a617dc95f537

Contents?: true

Size: 593 Bytes

Versions: 9

Compression:

Stored size: 593 Bytes

Contents

module Fog
  module Parsers
    module TerremarkEcloud
      module Compute

        class GetIpAddresses < Fog::Parsers::Base

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

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

        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fog-0.5.3 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
fog-0.5.2 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
fog-0.5.1 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
fog-0.5.0 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
phpfog-fog-0.4.1.3 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
phpfog-fog-0.4.1.2 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
phpfog-fog-0.4.1.1 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
phpfog-fog-0.4.1 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb
fog-0.4.1 lib/fog/compute/parsers/terremark_ecloud/get_ip_addresses.rb