Sha256: cdd0cbc3b9f06bff175b9dfe1bd7c0e73d45bebd9c01a60996562930e7d1847e
Contents?: true
Size: 336 Bytes
Versions: 7
Compression:
Stored size: 336 Bytes
Contents
module Nmap # # Wraps a `uptime` XML element. # # @since 0.7.0 # class Uptime < Struct.new(:seconds, :last_boot) # # Converts the uptime object to a String. # # @return [String] # The String form of the Uptime. # def to_s "uptime: #{self.seconds} (#{self.last_boot})" end end end
Version data entries
7 entries across 7 versions & 1 rubygems