Sha256: 82bf0c992a39b8138b7dc4752e71431f5caae0b1dd879ffc2fd49feaf76bc057
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
# frozen_string_literal: true module Nmap class XML # # Represents an IP or MAC address and Vendor name. # # @since 1.0.0 # 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | lib/nmap/xml/address.rb |