class Nmap::Address
Represents an IP or MAC address and Vendor name.
Public Class Methods
new(type,addr,vendor=nil)
click to toggle source
Initializes the address.
@param [Symbol] type
The type of address.
@param [String] addr
The address.
@param [String, nil] vendor
The optional vendor.
Calls superclass method
# File lib/nmap/address.rb, line 19 def initialize(type,addr,vendor=nil) super(type,addr,vendor) end
Public Instance Methods
to_s()
click to toggle source
Converts the address to a String.
@return [String]
The address.
# File lib/nmap/address.rb, line 29 def to_s self.addr.to_s end