Class: Nmap::Scanner

Inherits:
Struct
  • Object
show all
Defined in:
lib/nmap/scanner.rb

Overview

Describes the nmap command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



5
6
7
# File 'lib/nmap/scanner.rb', line 5

def arguments
  @arguments
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/nmap/scanner.rb', line 5

def name
  @name
end

#start_timeObject

Returns the value of attribute start_time

Returns:

  • (Object)

    the current value of start_time



5
6
7
# File 'lib/nmap/scanner.rb', line 5

def start_time
  @start_time
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



5
6
7
# File 'lib/nmap/scanner.rb', line 5

def version
  @version
end

Instance Method Details

#to_sString

Converts the scanner to a String.

Returns:

  • (String)

    The scanner name and arguments.



13
14
15
# File 'lib/nmap/scanner.rb', line 13

def to_s
  "#{self.name} #{self.arguments}"
end