Sha256: 5cea881830d5778de8cc352df6be5cad058f09bfcb8e7d7de7ccb3ab73b8500a

Contents?: true

Size: 632 Bytes

Versions: 3

Compression:

Stored size: 632 Bytes

Contents

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


require 'whois/record/scanners/base_whoisd'


module Whois
  class Record
    module Scanners

      class WhoisNicCz < BaseWhoisd

        self.tokenizers += [
            :scan_response_throttled,
        ]

        tokenizer :scan_response_throttled do
          if @input.match?(/Your connection limit exceeded\. Please slow down and try again later/)
            @ast["response:throttled"] = true
            @input.skip(/^.+\n/)
          end
        end

      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whois-3.6.5 lib/whois/record/scanners/whois.nic.cz.rb
whois-3.6.4 lib/whois/record/scanners/whois.nic.cz.rb
whois-3.6.3 lib/whois/record/scanners/whois.nic.cz.rb