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
10 11 12 |
# File 'lib/nmap/xml/hop.rb', line 10 def addr @addr end |
#host ⇒ Object
Returns the value of attribute host
10 11 12 |
# File 'lib/nmap/xml/hop.rb', line 10 def host @host end |
#rtt ⇒ Object
Returns the value of attribute rtt
10 11 12 |
# File 'lib/nmap/xml/hop.rb', line 10 def rtt @rtt end |
#ttl ⇒ Object
Returns the value of attribute ttl
10 11 12 |
# File 'lib/nmap/xml/hop.rb', line 10 def ttl @ttl end |
Instance Method Details
#to_s ⇒ String
Converts the hop to a String.
18 19 20 |
# File 'lib/nmap/xml/hop.rb', line 18 def to_s self.addr.to_s end |