Sha256: be877a82272610c90b1e5118f9f90d77357fc992f72f734c64960f34bc0214c9

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
ruby-nmap-1.0.3 lib/nmap/xml/run_stat.rb