Class: Nmap::Scanner
- Inherits:
-
Struct
- Object
- Struct
- Nmap::Scanner
- Defined in:
- lib/nmap/scanner.rb
Overview
Describes the nmap
command.
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#name ⇒ Object
Returns the value of attribute name.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the scanner to a String.
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments
5 6 7 |
# File 'lib/nmap/scanner.rb', line 5 def arguments @arguments end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/nmap/scanner.rb', line 5 def name @name end |
#start_time ⇒ Object
Returns the value of attribute start_time
5 6 7 |
# File 'lib/nmap/scanner.rb', line 5 def start_time @start_time end |
#version ⇒ Object
Returns the value of attribute version
5 6 7 |
# File 'lib/nmap/scanner.rb', line 5 def version @version end |
Instance Method Details
#to_s ⇒ String
Converts the scanner to a String.
13 14 15 |
# File 'lib/nmap/scanner.rb', line 13 def to_s "#{self.name} #{self.arguments}" end |