Sha256: ac00bdc18334501277b20b519690d08259e6c90166ae819b48d52dfe1a7ad119

Contents?: true

Size: 753 Bytes

Versions: 8

Compression:

Stored size: 753 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_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

8 entries across 8 versions & 1 rubygems

Version Path
whois-3.6.2 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.6.1 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.6.0 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.9 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.8 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.7 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.6 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.5 lib/whois/record/parser/whois.nic.xxx.rb