lib/nmap/scanner.rb in ruby-nmap-0.1.1 vs lib/nmap/scanner.rb in ruby-nmap-0.2.0
- old
+ new
@@ -8,10 +8,13 @@
attr_reader :version
# The arguments used with the scanner
attr_reader :arguments
+ # The time the scan begun
+ attr_reader :start_time
+
#
# Creates a new Scanner object.
#
# @param [String] name
# The name of the scanner.
@@ -20,13 +23,17 @@
# The version of the scanner.
#
# @param [String] arguments
# The arguments used with the scanner.
#
- def initialize(name,version,arguments)
+ # @param [Time] start_time
+ # The time the scan begun
+ #
+ def initialize(name,version,arguments,start_time)
@name = name
@version = version
@arguments = arguments
+ @start_time = start_time
end
#
# Converts the scanner to a String.
#