Class: Nmap::XML::Hop
- Inherits:
-
Struct
- Object
- Struct
- Nmap::XML::Hop
- Defined in:
- lib/nmap/xml/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
8 9 10 |
# File 'lib/nmap/xml/hop.rb', line 8 def addr @addr end |
#host ⇒ Object
Returns the value of attribute host
8 9 10 |
# File 'lib/nmap/xml/hop.rb', line 8 def host @host end |
#rtt ⇒ Object
Returns the value of attribute rtt
8 9 10 |
# File 'lib/nmap/xml/hop.rb', line 8 def rtt @rtt end |
#ttl ⇒ Object
Returns the value of attribute ttl
8 9 10 |
# File 'lib/nmap/xml/hop.rb', line 8 def ttl @ttl end |
Instance Method Details
#to_s ⇒ String
Converts the hop to a String.
16 17 18 |
# File 'lib/nmap/xml/hop.rb', line 16 def to_s self.addr.to_s end |