lib/nmap/xml/hop.rb
# frozen_string_literal: true
module Nmap
class XML
#
# Represents a hop in a traceroute.
#
# @since 1.0.0
#
class Hop < Struct.new(:addr, :host, :ttl, :rtt)
#
# Converts the hop to a String.
#
# @return [String]
# The IP address of the hop.
#
def to_s
self.addr.to_s
end
end
end
end