Sha256: d6ec4680e6a2d11222792a52b816c9f23b6d3d77b8090ae1591fb432454b59d8

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

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


module Whois
  class Record
    class Parser

      # Parser for the whois.registrypro.pro server.
      #
      # @see Whois::Record::Parser::Example
      #   The Example parser for the list of all available methods.
      #
      class WhoisRegistryproPro < BaseAfilias

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

        # NEWPROPERTY
        def reserved?
          !!content_for_scanner.match(/Governmental Reserved Name/)
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whois-3.6.4 lib/whois/record/parser/whois.registrypro.pro.rb
whois-3.6.3 lib/whois/record/parser/whois.registrypro.pro.rb