Sha256: 3a11dc029e71d3dde32a7001c442d01f147f8ee23f7f26b5403aacab420511ac
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client. # # # 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. # # ==== Raises # NoInterfaceError:: for every request # def request(qstring) raise NoInterfaceError, "This `#{type}' has no whois server" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-0.8.0 | lib/whois/server/adapters/none.rb |