class Scriptroute::Tulip::TraceHop
a traceroute hop ##################
Attributes
dst[R]
hop[R]
ip[R]
name[R]
Public Class Methods
new(hop, ip, dst, name=ip)
click to toggle source
# File lib/scriptroute/tulip/helper.rb, line 593 def initialize (hop, ip, dst, name=ip) @hop = hop; @ip = ip; @dst = dst; @name = name; end
Public Instance Methods
==(another)
click to toggle source
todo: set this right
# File lib/scriptroute/tulip/helper.rb, line 601 def == (another) return true if (@ip == another.ip); return AliasResolution.aliases(self, another) if (@@aliasTesting); return false; end
to_s()
click to toggle source
# File lib/scriptroute/tulip/helper.rb, line 607 def to_s return "#{@hop.to_s} #{@name.to_s} (#{@ip.to_s})"; end