class Nmap::XML::Uptime
Wraps a ‘uptime` XML
element.
@since 1.0.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/xml/uptime.rb, line 16 def to_s "uptime: #{self.seconds} (#{self.last_boot})" end