class NetworkDevices
Attributes
ip_dn[R]
Public Class Methods
new(ip)
click to toggle source
# File lib/networkwatcherd/networkdevices.rb, line 3 def initialize (ip) @ip = ip @ip_dn = @ip.split(".").at(3).to_i end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/networkwatcherd/networkdevices.rb, line 13 def <=> (other) @ip_dn <=> other.ip_dn end
inspect()
click to toggle source
# File lib/networkwatcherd/networkdevices.rb, line 7 def inspect @ip end
value()
click to toggle source
# File lib/networkwatcherd/networkdevices.rb, line 10 def value @ip_dn end