Sha256: 89052ea5b77504a1d187f83738ec4965882016d6fe76f78e45f2fb7f5604f978

Contents?: true

Size: 682 Bytes

Versions: 6

Compression:

Stored size: 682 Bytes

Contents

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


require_relative 'base_afilias2'


module Whois
  class Parsers

    # Parser for the whois.nic.xxx server.
    class WhoisNicXxx < BaseAfilias2

      self.scanner = Scanners::BaseAfilias, {
          pattern_disclaimer: /^Access to/,
          pattern_reserved: /^Reserved by ICM Registry\n/,
      }


      property_supported :status do
        if reserved?
          :reserved
        else
          super()
        end
      end


      # NEWPROPERTY
      def reserved?
        !!node("status:reserved")
      end

    end

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
whois-parser-1.0.1 lib/whois/parsers/whois.nic.xxx.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/parsers/whois.nic.xxx.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/parsers/whois.nic.xxx.rb
whois-parser-1.0.0 lib/whois/parsers/whois.nic.xxx.rb
whois-parser-1.0.0.pre.beta2 lib/whois/parsers/whois.nic.xxx.rb
whois-parser-1.0.0.pre.beta1 lib/whois/parsers/whois.nic.xxx.rb