class Nmap::XML::Scan
Represents an Nmap
scan.
@since 1.0.0
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/xml/scan.rb, line 22 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/xml/scan.rb, line 32 def to_s "#{self.protocol} #{self.type}" end