Class: Nmap::Scanner
- Inherits:
-
Object
- Object
- Nmap::Scanner
- Defined in:
- lib/nmap/scanner.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
The arguments used with the scanner.
-
#name ⇒ Object
readonly
The name of the scanner.
-
#start_time ⇒ Object
readonly
The time the scan begun.
-
#version ⇒ Object
readonly
The version of the scanner.
Instance Method Summary collapse
-
#initialize(name, version, arguments, start_time) ⇒ Scanner
constructor
Creates a new Scanner object.
-
#to_s ⇒ String
Converts the scanner to a String.
Constructor Details
#initialize(name, version, arguments, start_time) ⇒ Scanner
Creates a new Scanner object.
31 32 33 34 35 36 |
# File 'lib/nmap/scanner.rb', line 31 def initialize(name,version,arguments,start_time) @name = name @version = version @arguments = arguments @start_time = start_time end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
The arguments used with the scanner
11 12 13 |
# File 'lib/nmap/scanner.rb', line 11 def arguments @arguments end |
#name ⇒ Object (readonly)
The name of the scanner
5 6 7 |
# File 'lib/nmap/scanner.rb', line 5 def name @name end |
#start_time ⇒ Object (readonly)
The time the scan begun
14 15 16 |
# File 'lib/nmap/scanner.rb', line 14 def start_time @start_time end |
#version ⇒ Object (readonly)
The version of the scanner
8 9 10 |
# File 'lib/nmap/scanner.rb', line 8 def version @version end |
Instance Method Details
#to_s ⇒ String
Converts the scanner to a String.
44 45 46 |
# File 'lib/nmap/scanner.rb', line 44 def to_s "#{@name} #{@arguments}" end |