Sha256: 55374a61adfab33f2268edb04acd6f66341dca5c15b1bc891e6c687091605b2f
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/parser/base_verisign' module Whois class Record class Parser # Parser for the whois.verisign-grs.com server. # # @see Whois::Record::Parser::Example # The Example parser for the list of all available methods. # class WhoisVerisignGrsCom < BaseVerisign property_supported :expires_on do node("Expiration Date") { |value| Time.parse(value) } end property_supported :registrar do node("Registrar") do |value| Whois::Record::Registrar.new( id: last_useful_item(node("Sponsoring Registrar IANA ID")), name: last_useful_item(value), url: referral_url ) end end # Checks whether this response contains a message # that can be reconducted to a "WHOIS Server Unavailable" status. # # @return [Boolean] def response_unavailable? !!node("response:unavailable") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
whois-3.6.5 | lib/whois/record/parser/whois.verisign-grs.com.rb |
whois-3.6.4 | lib/whois/record/parser/whois.verisign-grs.com.rb |
whois-3.6.3 | lib/whois/record/parser/whois.verisign-grs.com.rb |