Sha256: 989df96797c23a3fe73614ce83512983847ac4e77310196cfe96b5b218c4accc

Contents?: true

Size: 759 Bytes

Versions: 8

Compression:

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

8 entries across 8 versions & 1 rubygems

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