Class: Nmap::Address
- Inherits:
-
Object
- Object
- Nmap::Address
- Defined in:
- lib/nmap/address.rb
Instance Attribute Summary collapse
-
#addr ⇒ Object
readonly
Address.
-
#type ⇒ Object
readonly
Type of the address.
Instance Method Summary collapse
-
#initialize(type, addr) ⇒ Address
constructor
Creates a new Address object.
-
#to_s ⇒ String
Converts the address to a String.
Constructor Details
#initialize(type, addr) ⇒ Address
Creates a new Address object.
19 20 21 22 |
# File 'lib/nmap/address.rb', line 19 def initialize(type,addr) @type = type @addr = addr end |
Instance Attribute Details
#addr ⇒ Object (readonly)
Address
8 9 10 |
# File 'lib/nmap/address.rb', line 8 def addr @addr end |
#type ⇒ Object (readonly)
Type of the address
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.
30 31 32 |
# File 'lib/nmap/address.rb', line 30 def to_s @addr.to_s end |