Class: Nmap::Address
- Inherits:
-
Struct
- Object
- Struct
- Nmap::Address
- Defined in:
- lib/nmap/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.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the address to a String.
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr
5 6 7 |
# File 'lib/nmap/address.rb', line 5 def addr @addr end |
#type ⇒ Object
Returns the value of attribute type
5 6 7 |
# File 'lib/nmap/address.rb', line 5 def type @type end |
Instance Method Details
#to_s ⇒ String
Converts the address to a String.
13 14 15 |
# File 'lib/nmap/address.rb', line 13 def to_s self.addr.to_s end |