Sha256: 345304a1aaa5aabf2d4438ba25d63dadcb08fb4a55943f62db6a0b25bb97da33
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
# frozen_string_literal: true module Nmap class XML # # Represents an Nmap scan. # # @since 1.0.0 # class Scan < Struct.new(:type, :protocol, :services) # # 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. # def initialize(type,protocol,services=[]) super(type,protocol,services) end # # Converts the scan to a String. # # @return [String] # The String form of the scan. # def to_s "#{self.protocol} #{self.type}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | lib/nmap/xml/scan.rb |