Method: Ipdb::Location#hostname
- Defined in:
- lib/ipdb/location.rb
#hostname ⇒ String
Return the Location hostname.
50 51 52 53 54 55 56 |
# File 'lib/ipdb/location.rb', line 50 def hostname Timeout::timeout(@timeout) do @hostname = Resolv.getname(address) end rescue Timeout::Error rescue end |