Sha256: e03b3c66317615f2eab593e8318471f1744412c802b3f7302a5515972c5232f7

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

#
# = Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
#
# Category::    Net
# Package::     Whois
# Author::      Simone Carletti <weppos@weppos.net>
# License::     MIT License
#
#--
#
#++


require 'whois/answer/parser/base'


module Whois
  class Answer
    class Parser

      #
      # = whois.aeda.net.ae parser
      #
      # Parser for the whois.aeda.net.ae server.
      #
      # NOTE: This parser is just a stub and provides only a few basic methods
      # to check for domain availability and get domain status.
      # Please consider to contribute implementing missing methods.
      # See WhoisNicIt parser for an explanation of all available methods
      # and examples.
      #
      class WhoisAedaNetAe < Base

        property_supported :status do
          @status ||= content_for_scanner.scan(/Status:\s+(.*?)\n/).flatten
        end

        property_supported :available? do
          @available ||= content_for_scanner.strip == "No Data Found"
        end

        property_supported :registered? do
          !available?
        end


        property_not_supported :created_on

        property_not_supported :updated_on

        property_not_supported :expires_on


        property_supported :nameservers do
          @nameservers ||= content_for_scanner.scan(/Name Server:\s+(.+?)\n/).flatten
        end

      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whois-1.3.10 lib/whois/answer/parser/whois.aeda.net.ae.rb
whois-1.3.9 lib/whois/answer/parser/whois.aeda.net.ae.rb
whois-1.3.8 lib/whois/answer/parser/whois.aeda.net.ae.rb
whois-1.3.7 lib/whois/answer/parser/whois.aeda.net.ae.rb