Sha256: 1da53c0c9aa77ef4195c30051ff622e428c500a816132d40b18963f82895b8dd

Contents?: true

Size: 852 Bytes

Versions: 5

Compression:

Stored size: 852 Bytes

Contents

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


require 'whois/record/parser/base_whoisd'
require 'whois/record/scanners/whois.nic.cz.rb'


module Whois
  class Record
    class Parser

      # Parser for the whois.nic.cz server.
      #
      # @see Whois::Record::Parser::Example
      #   The Example parser for the list of all available methods.
      #
      class WhoisNicCz < BaseWhoisd

        self.scanner = Scanners::WhoisNicCz

        self.status_mapping = {
          "paid and in zone" => :registered,
          "update prohibited" => :registered,
          "expired" => :expired,
          "to be deleted" => :expired,
        }

        def response_throttled?
          !!node("response:throttled")
        end

      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whois-3.4.3 lib/whois/record/parser/whois.nic.cz.rb
whois-3.4.2 lib/whois/record/parser/whois.nic.cz.rb
whois-3.4.1 lib/whois/record/parser/whois.nic.cz.rb
whois-3.4.0 lib/whois/record/parser/whois.nic.cz.rb
whois-3.3.1 lib/whois/record/parser/whois.nic.cz.rb