Sha256: a750531ee811307c8fbd30d7a19861aa152b48b34a5d01291db07cc7cd4025e6
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
module Nmap class XML # # Wraps a `uptime` XML element. # # @since 1.0.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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.2 | lib/nmap/xml/uptime.rb |
ruby-nmap-1.0.1 | lib/nmap/xml/uptime.rb |
ruby-nmap-1.0.0 | lib/nmap/xml/uptime.rb |