Class: Nmap::Hop
- Inherits:
-
Struct
- Object
- Struct
- Nmap::Hop
- Defined in:
- lib/nmap/hop.rb
Overview
Represents a hop in a traceroute.
Instance Attribute Summary collapse
-
#addr ⇒ Object
Returns the value of attribute addr.
-
#host ⇒ Object
Returns the value of attribute host.
-
#rtt ⇒ Object
Returns the value of attribute rtt.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the hop to a String.
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr
7 8 9 |
# File 'lib/nmap/hop.rb', line 7 def addr @addr end |
#host ⇒ Object
Returns the value of attribute host
7 8 9 |
# File 'lib/nmap/hop.rb', line 7 def host @host end |
#rtt ⇒ Object
Returns the value of attribute rtt
7 8 9 |
# File 'lib/nmap/hop.rb', line 7 def rtt @rtt end |
#ttl ⇒ Object
Returns the value of attribute ttl
7 8 9 |
# File 'lib/nmap/hop.rb', line 7 def ttl @ttl end |
Instance Method Details
#to_s ⇒ String
Converts the hop to a String.
15 16 17 |
# File 'lib/nmap/hop.rb', line 15 def to_s self.addr.to_s end |