Sha256: 5cfae4acf3e85cdb2d0c117d9dc526e09b4d6c419d2bae80bd2da81584f7f58c

Contents?: true

Size: 613 Bytes

Versions: 16

Compression:

Stored size: 613 Bytes

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
      
      class Formatted < Base
        
        def request(qstring)
          options[:format] || raise(ServerError, "Missing mandatory :format option for adapter `Formatted'")
          response = query_the_socket(sprintf(options[:format], qstring), host)
          append_to_buffer response, host
        end
        
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
whois-1.1.8 lib/whois/server/adapters/formatted.rb
whois-1.1.7 lib/whois/server/adapters/formatted.rb
whois-1.1.6 lib/whois/server/adapters/formatted.rb
whois-1.1.5 lib/whois/server/adapters/formatted.rb
whois-1.1.4 lib/whois/server/adapters/formatted.rb
whois-1.1.3 lib/whois/server/adapters/formatted.rb
whois-1.1.2 lib/whois/server/adapters/formatted.rb
whois-1.1.1 lib/whois/server/adapters/formatted.rb
whois-1.1.0 lib/whois/server/adapters/formatted.rb
whois-1.0.12 lib/whois/server/adapters/formatted.rb
whois-1.0.11 lib/whois/server/adapters/formatted.rb
whois-1.0.10 lib/whois/server/adapters/formatted.rb
whois-1.0.9 lib/whois/server/adapters/formatted.rb
whois-1.0.8 lib/whois/server/adapters/formatted.rb
whois-1.0.7 lib/whois/server/adapters/formatted.rb
whois-1.0.6 lib/whois/server/adapters/formatted.rb