class Nmap::Scan
Represents an Nmap
scan.
Public Class Methods
new(type,protocol,services=[])
click to toggle source
Creates a new Scan
object.
@param [Symbol] type
The type of the scan.
@param [Symbol] protocol
The protocol used for the scan.
@param [Array<Integer, Rage>] services
The port numbers scanned.
Calls superclass method
# File lib/nmap/scan.rb, line 19 def initialize(type,protocol,services=[]) super(type,protocol,services) end
Public Instance Methods
to_s()
click to toggle source
Converts the scan to a String.
@return [String]
The String form of the scan.
# File lib/nmap/scan.rb, line 29 def to_s "#{self.protocol} #{self.type}" end