Sha256: 5f3106b29478df65e99f4ef787bb3e61b267691d7547a060da2d234e1639f53f

Contents?: true

Size: 296 Bytes

Versions: 7

Compression:

Stored size: 296 Bytes

Contents

module Nmap
  #
  # Represents a hop in a traceroute.
  #
  # @since 0.7.0
  #
  class Hop < Struct.new(:addr, :host, :ttl, :rtt)

    #
    # Converts the hop to a String.
    #
    # @return [String]
    #   The IP address of the hop.
    #
    def to_s
      self.addr.to_s
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-nmap-0.10.0 lib/nmap/hop.rb
ruby-nmap-0.9.3 lib/nmap/hop.rb
ruby-nmap-0.9.2 lib/nmap/hop.rb
ruby-nmap-0.9.1 lib/nmap/hop.rb
ruby-nmap-0.9.0 lib/nmap/hop.rb
ruby-nmap-0.8.0 lib/nmap/hop.rb
ruby-nmap-0.7.0 lib/nmap/hop.rb