Class: Whois::Server::Adapters::Arpa

Inherits:
Base
  • Object
show all
Defined in:
lib/whois/server/adapters/arpa.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_BIND_HOST, Base::DEFAULT_WHOIS_PORT

Instance Attribute Summary

Attributes inherited from Base

#allocation, #buffer, #host, #options, #type

Instance Method Summary collapse

Methods inherited from Base

#==, #configure, #initialize, #lookup, #query_handler

Constructor Details

This class inherits a constructor from Whois::Server::Adapters::Base

Instance Method Details

#request(string) ⇒ Object



18
19
20
21
22
# File 'lib/whois/server/adapters/arpa.rb', line 18

def request(string)
  record = Server.guess(inaddr_to_ip(string)).lookup(string)
  part   = record.parts.first
  buffer_append part.body, part.host
end