Class: Whois::Server::Adapters::Web

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

Overview

Web Adapter

Special adapter intended to be used when you can only access the WHOIS database via an online interface.

This adapter should be considered like a None adapter, just a little bit more specific.

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) ⇒ void

This method returns an undefined value.

Always raises a WebInterfaceError exception including the web address for the WHOIS inteface.

Parameters:

  • string (String)

Raises:



35
36
37
# File 'lib/whois/server/adapters/web.rb', line 35

def request(string)
  raise WebInterfaceError, options[:url]
end