Sha256: b933238026eeddf4aa33930a832597601fbb9775f8dd91d49028240025b1a8b5
Contents?: true
Size: 1.14 KB
Versions: 24
Compression:
Stored size: 1.14 KB
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # # Category:: Net # Package:: Whois # Author:: Simone Carletti <weppos@weppos.net> # License:: MIT License # #-- # #++ module Whois class Server module Adapters # # = 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 <tt>Whois::Server::Adapters::Web</tt> adapter. # # Every query for an object associated to a <tt>Whois::Server::Adapters::None</tt> # adapter raises a <tt>Whois::NoInterfaceError</tt> exception. # class None < Base # Always raises a <tt>Whois::NoInterfaceError</tt> exception. # # Returns nothing. # Raises Whois::NoInterfaceError for every request. def request(qstring) raise NoInterfaceError, "This `#{type}' has no whois server" end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems