Sha256: 6410f804f20702a859e28f369f65f3ad44951ad91d22be523c4bd88350f19c28
Contents?: true
Size: 1.62 KB
Versions: 2
Compression:
Stored size: 1.62 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.nic.ac parser # # Parser for the whois.nic.ac server. # class WhoisNicAc < Base property_not_supported :disclaimer property_supported :domain do @domain ||= Proc.new do content.to_s =~ /Domain "(.*?)"/ $1.downcase end.call end property_not_supported :domain_id property_supported :status do @status ||= if available? :available else :registered end end property_supported :available? do @available ||= !(content.to_s =~ /Not available/) end property_supported :registered? do !available? end property_not_supported :created_on property_not_supported :updated_on property_not_supported :expires_on property_not_supported :registrar property_not_supported :registrant property_not_supported :admin property_not_supported :technical property_not_supported :nameservers property_supported :changed? do |other| !unchanged?(other) end property_supported :unchanged? do |other| self == other || self.content.to_s == other.content.to_s end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whois-1.0.1 | lib/whois/answer/parser/whois.nic.ac.rb |
whois-1.0.0 | lib/whois/answer/parser/whois.nic.ac.rb |