Class: Nmap::XML::Scanner

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

Overview

Describes the nmap command.

Since:

  • 1.0.0

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



10
11
12
# File 'lib/nmap/xml/scanner.rb', line 10

def arguments
  @arguments
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/nmap/xml/scanner.rb', line 10

def name
  @name
end

#start_timeObject

Returns the value of attribute start_time

Returns:

  • (Object)

    the current value of start_time



10
11
12
# File 'lib/nmap/xml/scanner.rb', line 10

def start_time
  @start_time
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



10
11
12
# File 'lib/nmap/xml/scanner.rb', line 10

def version
  @version
end

Instance Method Details

#to_sString

Converts the scanner to a String.

Returns:

  • (String)

    The scanner name and arguments.

Since:

  • 1.0.0



18
19
20
# File 'lib/nmap/xml/scanner.rb', line 18

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