Sha256: c782fa878b24f43addce6f718a420ac145f8e0380c0133cea91fda025773dbae

Contents?: true

Size: 753 Bytes

Versions: 3

Compression:

Stored size: 753 Bytes

Contents

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


require 'whois/record/parser/base_afilias2'


module Whois
  class Record
    class Parser

      # 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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whois-3.6.5 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.6.4 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.6.3 lib/whois/record/parser/whois.nic.xxx.rb