Sha256: cffcdd837e01aa9381277cebbf1f4b176d7588724a098920690299f14235654e

Contents?: true

Size: 1.1 KB

Versions: 10

Compression:

Stored size: 1.1 KB

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
#++


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 {Whois::Server::Adapters::Web} adapter.
      #
      # Every query for an object associated to a {Whois::Server::Adapters::None}
      # adapter raises a {Whois::NoInterfaceError} exception.
      #
      class None < Base

        # Always raises a {Whois::NoInterfaceError} exception.
        #
        # @param  [String] string
        # @return [void]
        #
        # @raise  [Whois::NoInterfaceError] For every request.
        #
        def request(string)
          raise NoInterfaceError, "This `#{type}' has no whois server"
        end

      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
whois-2.2.0 lib/whois/server/adapters/none.rb
whois-2.1.0 lib/whois/server/adapters/none.rb
whois-2.0.7 lib/whois/server/adapters/none.rb
whois-2.0.6 lib/whois/server/adapters/none.rb
whois-2.0.5 lib/whois/server/adapters/none.rb
whois-2.0.4 lib/whois/server/adapters/none.rb
whois-2.0.3 lib/whois/server/adapters/none.rb
whois-2.0.2 lib/whois/server/adapters/none.rb
whois-2.0.1 lib/whois/server/adapters/none.rb
whois-2.0.0 lib/whois/server/adapters/none.rb