Sha256: 3a537c9265c8ea430103e3c30bffa7dc218953f54337ae6f1ef582e01c0f57e4

Contents?: true

Size: 852 Bytes

Versions: 2

Compression:

Stored size: 852 Bytes

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2014 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

2 entries across 2 versions & 1 rubygems

Version Path
whois-3.4.5 lib/whois/record/parser/whois.nic.cz.rb
whois-3.4.4 lib/whois/record/parser/whois.nic.cz.rb