Class: Nmap::Address

Inherits:
Struct
  • Object
show all
Defined in:
lib/nmap/address.rb

Overview

Represents a IP or MAC address.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addrObject

Returns the value of attribute addr

Returns:

  • (Object)

    the current value of addr



5
6
7
# File 'lib/nmap/address.rb', line 5

def addr
  @addr
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/nmap/address.rb', line 5

def type
  @type
end

Instance Method Details

#to_sString

Converts the address to a String.

Returns:

  • (String)

    The address.



13
14
15
# File 'lib/nmap/address.rb', line 13

def to_s
  self.addr.to_s
end