Class: Whois::Server::Adapters::None
- Defined in:
- lib/whois/server/adapters/none.rb
Overview
None Adapter
Special adapter intended to be used when a WHOIS interface doesn’t exist for given query. For example, the domain authority for some TLD doesn’t offer any way to query for WHOIS data.
In case the authority provides only a web based interface, you should use the Web adapter.
Every query for an object associated to a None adapter raises a NoInterfaceError exception.
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
-
#request(_string) ⇒ void
Always raises a NoInterfaceError exception.
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) ⇒ void
This method returns an undefined value.
Always raises a NoInterfaceError exception.
39 40 41 |
# File 'lib/whois/server/adapters/none.rb', line 39 def request(_string) raise NoInterfaceError, "This `#{type}' has no whois server" end |