Sha256: 1ed0f95a8dda95a9defbbf4982e0dba4828c96dec626bb6a888916d8f67c27ee

Contents?: true

Size: 414 Bytes

Versions: 3

Compression:

Stored size: 414 Bytes

Contents

module Nmap
  class XML
    #
    # Represents the runstats of a scan.
    #
    # @since 1.0.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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-nmap-1.0.2 lib/nmap/xml/run_stat.rb
ruby-nmap-1.0.1 lib/nmap/xml/run_stat.rb
ruby-nmap-1.0.0 lib/nmap/xml/run_stat.rb