Class: Whois::Server::Adapters::Arpa
- 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
16 17 18 19 20 |
# File 'lib/whois/server/adapters/arpa.rb', line 16 def request(string) record = Server.guess(inaddr_to_ip(string)).lookup(string) part = record.parts.first buffer_append part.body, part.host end |