Sha256: 2bccf7cd02698a69e97ce6c58e86147817f8bfb40db8cafa81a34cfb39f78019
Contents?: true
Size: 1.75 KB
Versions: 5
Compression:
Stored size: 1.75 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.sh parser # # Parser for the whois.nic.sh server. # class WhoisNicSh < Base property_not_supported :disclaimer property_supported :domain do @domain ||= if content_for_scanner =~ /Domain "(.+?)"/ $1.downcase end end property_not_supported :domain_id property_not_supported :referral_whois property_not_supported :referral_url property_supported :status do @status ||= if available? :available else :registered end end property_supported :available? do @available ||= !!(content_for_scanner =~ /- Available/) end property_supported :registered? do @registered ||= !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_contact property_not_supported :admin_contact property_not_supported :technical_contact property_not_supported :nameservers # NEWPROPERTY def changed?(other) !unchanged?(other) end # NEWPROPERTY def unchanged?(other) self.equal?(other) || self.content_for_scanner == other.content_for_scanner end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems