class Nmap::Uptime

Wraps a `uptime` XML element.

@since 0.7.0

Public Instance Methods

to_s() click to toggle source

Converts the uptime object to a String.

@return [String]

The String form of the Uptime.
# File lib/nmap/uptime.rb, line 15
def to_s
  "uptime: #{self.seconds} (#{self.last_boot})"
end