Sha256: 831e356bbbed6eca835b9203d2ee71486b28500233b305bc2fc7240c845b0644

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 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
      
      #
      # = 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

1 entries across 1 versions & 1 rubygems

Version Path
whois-0.8.0 lib/whois/server/adapters/web.rb