Class: Nmap::XML::Address
- Inherits:
-
Struct
- Object
- Struct
- Nmap::XML::Address
- Defined in:
- lib/nmap/xml/address.rb
Overview
Represents an IP or MAC address and Vendor name.
Instance Attribute Summary collapse
-
#addr ⇒ Object
Returns the value of attribute addr.
-
#type ⇒ Object
Returns the value of attribute type.
-
#vendor ⇒ Object
Returns the value of attribute vendor.
Instance Method Summary collapse
-
#initialize(type, addr, vendor = nil) ⇒ Address
constructor
Initializes the address.
-
#to_s ⇒ String
Converts the address to a String.
Constructor Details
#initialize(type, addr, vendor = nil) ⇒ Address
Initializes the address.
24 25 26 |
# File 'lib/nmap/xml/address.rb', line 24 def initialize(type,addr,vendor=nil) super(type,addr,vendor) end |
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr
10 11 12 |
# File 'lib/nmap/xml/address.rb', line 10 def addr @addr end |
#type ⇒ Object
Returns the value of attribute type
10 11 12 |
# File 'lib/nmap/xml/address.rb', line 10 def type @type end |
#vendor ⇒ Object
Returns the value of attribute vendor
10 11 12 |
# File 'lib/nmap/xml/address.rb', line 10 def vendor @vendor end |
Instance Method Details
#to_s ⇒ String
Converts the address to a String.
34 35 36 |
# File 'lib/nmap/xml/address.rb', line 34 def to_s self.addr.to_s end |