Sha256: ec428ba8708c66d52cd64bc7e031693a04f0a033b8db322331920ec33f20e108

Contents?: true

Size: 589 Bytes

Versions: 5

Compression:

Stored size: 589 Bytes

Contents

module Nmap
  #
  # Represents an IP or MAC address and Vendor name.
  #
  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]
    #   The address.
    #
    def to_s
      self.addr.to_s
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-nmap-0.10.0 lib/nmap/address.rb
ruby-nmap-0.9.3 lib/nmap/address.rb
ruby-nmap-0.9.2 lib/nmap/address.rb
ruby-nmap-0.9.1 lib/nmap/address.rb
ruby-nmap-0.9.0 lib/nmap/address.rb