lib/nmap/address.rb in ruby-nmap-0.8.0 vs lib/nmap/address.rb in ruby-nmap-0.9.0
- old
+ new
@@ -1,9 +1,25 @@
module Nmap
#
# Represents an IP or MAC address and Vendor name.
#
- class Address < Struct.new(:type, :addr)
+ class Address < Struct.new(:type, :addr, :vendor)
+
+ #
+ # Initializes the address.
+ #
+ # @param [Symbol] type
+ # The type of address.
+ #
+ # @param [String] addr
+ # The address.
+ #
+ # @param [String, nil] vendor
+ # The optional vendor.
+ #
+ def initialize(type,addr,vendor=nil)
+ super(type,addr,vendor)
+ end
#
# Converts the address to a String.
#
# @return [String]