Sha256: 3f20333b0c1b9122aba2b8b8856d521174a4ce6926981a51cdc173382872228f

Contents?: true

Size: 775 Bytes

Versions: 13

Compression:

Stored size: 775 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_afilias'


module Whois
  class Record
    class Parser

      # Parser for the whois.pir.org server.
      class WhoisPirOrg < 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

13 entries across 13 versions & 1 rubygems

Version Path
whois-3.4.3 lib/whois/record/parser/whois.pir.org.rb
whois-3.4.2 lib/whois/record/parser/whois.pir.org.rb
whois-3.4.1 lib/whois/record/parser/whois.pir.org.rb
whois-3.4.0 lib/whois/record/parser/whois.pir.org.rb
whois-3.3.1 lib/whois/record/parser/whois.pir.org.rb
whois-3.3.0 lib/whois/record/parser/whois.pir.org.rb
whois-3.2.1 lib/whois/record/parser/whois.pir.org.rb
whois-3.2.0 lib/whois/record/parser/whois.pir.org.rb
whois-3.1.3 lib/whois/record/parser/whois.pir.org.rb
whois-3.1.2 lib/whois/record/parser/whois.pir.org.rb
whois-3.1.1 lib/whois/record/parser/whois.pir.org.rb
whois-3.1.0 lib/whois/record/parser/whois.pir.org.rb
whois-3.0.0 lib/whois/record/parser/whois.pir.org.rb