Sha256: 8213db0fa006e5bd1ca62697d9e23e1b73f3708cbbc05f62def6c4e8299a7785

Contents?: true

Size: 691 Bytes

Versions: 6

Compression:

Stored size: 691 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/
        }


        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

6 entries across 6 versions & 1 rubygems

Version Path
whois-3.5.4 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.3 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.2 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.1 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.5.0 lib/whois/record/parser/whois.nic.xxx.rb
whois-3.4.5 lib/whois/record/parser/whois.nic.xxx.rb