Sha256: 8c5fe4dc42bd1e24e0436e004f71c2e6e170fbeca51eb47e09ebd9b543a5e9c2

Contents?: true

Size: 865 Bytes

Versions: 15

Compression:

Stored size: 865 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_icb'


module Whois
  class Record
    class Parser

      # Parser for the whois.nic.io server.
      #
      # @see Whois::Record::Parser::Example
      #   The Example parser for the list of all available methods.
      #
      class WhoisNicIo < BaseIcb

        property_supported :domain do
          if reserved?
            nil
          else
            super()
          end
        end

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


        # NEWPROPERTY
        def reserved?
          !!content_for_scanner.match(/^Domain reserved\n/)
        end

      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
whois-3.6.2 lib/whois/record/parser/whois.nic.io.rb
whois-3.6.1 lib/whois/record/parser/whois.nic.io.rb
whois-3.6.0 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.9 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.8 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.7 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.6 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.5 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.4 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.3 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.2 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.1 lib/whois/record/parser/whois.nic.io.rb
whois-3.5.0 lib/whois/record/parser/whois.nic.io.rb
whois-3.4.5 lib/whois/record/parser/whois.nic.io.rb
whois-3.4.4 lib/whois/record/parser/whois.nic.io.rb