Sha256: 4bd231d7b238bc6c9cfad7d0a69480b36778a721c45c23bbdef0b179b8ce40f2
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 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 # # = 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 a <tt>Whois::Server::Adapters::None</tt> # adapter a little more specific. # class Web < Base # Always raises a <tt>Whois::WebInterfaceError</tt> exception # including the web address for the WHOIS inteface. # # ==== Raises # WebInterfaceError:: for every request # def request(qstring) raise WebInterfaceError, "This TLD has no whois server, " + "but you can access the whois database at `#{options[:web]}'" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whois-0.9.0 | lib/whois/server/adapters/web.rb |
whois-0.8.1 | lib/whois/server/adapters/web.rb |