Sha256: cabef2b2977fb0d5d255c536550e3bbce035d123418848ec02c8a82f8b3b0015

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 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

5 entries across 5 versions & 1 rubygems

Version Path
whois-1.0.5 lib/whois/answer/parser/whois.aeda.net.ae.rb
whois-1.0.4 lib/whois/answer/parser/whois.aeda.net.ae.rb
whois-1.0.3 lib/whois/answer/parser/whois.aeda.net.ae.rb
whois-1.0.2 lib/whois/answer/parser/whois.aeda.net.ae.rb
whois-1.0.1 lib/whois/answer/parser/whois.aeda.net.ae.rb