Sha256: 61def0ba951f1cf7b99a6e49ac04084ecf7e07a915e92b050165473b4014f150

Contents?: true

Size: 824 Bytes

Versions: 2

Compression:

Stored size: 824 Bytes

Contents

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


require 'whois/record/parser/base_afilias'


module Whois
  class Record
    class Parser

      # Parser for the whois.publicinternetregistry.net server.
      class WhoisPublicinterestregistryNet < BaseAfilias

        # Checks whether the response has been throttled.
        #
        # @return [Boolean]
        #
        # @example
        #   WHOIS LIMIT EXCEEDED - SEE WWW.PIR.ORG/WHOIS FOR DETAILS
        #
        def response_throttled?
          !!node("response:throttled")
        end

        private

          def decompose_registrar(value)
            if value =~ /(.+?) \((.+?)\)/
              [$2, $1]
            end
          end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whois-2.2.0 lib/whois/record/parser/whois.publicinterestregistry.net.rb
whois-2.1.0 lib/whois/record/parser/whois.publicinterestregistry.net.rb