Sha256: 555068bf1cee9686b4086c3d90ad049aadf37bae5cfd7fb202724004c16c8c06

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

module Nmap
  #
  # Represents the runstats of a scan.
  #
  # @since 0.7.0
  #
  class RunStat < Struct.new(:end_time, :elapsed, :summary, :exit_status)

    #
    # Converts the stats to a String.
    #
    # @return [String]
    #   The String form of the scan.
    #
    def to_s
      "#{self.end_time} #{self.elapsed} #{self.exit_status}"
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-nmap-0.10.0 lib/nmap/run_stat.rb
ruby-nmap-0.9.3 lib/nmap/run_stat.rb
ruby-nmap-0.9.2 lib/nmap/run_stat.rb
ruby-nmap-0.9.1 lib/nmap/run_stat.rb
ruby-nmap-0.9.0 lib/nmap/run_stat.rb
ruby-nmap-0.8.0 lib/nmap/run_stat.rb
ruby-nmap-0.7.0 lib/nmap/run_stat.rb