Sha256: d0c8b24d10e79d147f689684ef3f91827d821b1bf48e83f648ab379465261dca

Contents?: true

Size: 789 Bytes

Versions: 2

Compression:

Stored size: 789 Bytes

Contents

module Nmap
  class Scanner

    # The name of the scanner
    attr_reader :name

    # The version of the scanner
    attr_reader :version

    # The arguments used with the scanner
    attr_reader :arguments

    #
    # Creates a new Scanner object.
    #
    # @param [String] name
    #   The name of the scanner.
    #
    # @param [String] version
    #   The version of the scanner.
    #
    # @param [String] arguments
    #   The arguments used with the scanner.
    #
    def initialize(name,version,arguments)
      @name = name
      @version = version
      @arguments = arguments
    end

    #
    # Converts the scanner to a String.
    #
    # @return [String]
    #   The scanner name and arguments.
    #
    def to_s
      "#{@name} #{@arguments}"
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-nmap-0.1.1 lib/nmap/scanner.rb
ruby-nmap-0.1.0 lib/nmap/scanner.rb