Sha256: abf9d503af42e1e91a11abd2f0116a7b8805163f31978c7c56596c572ea369b1
Contents?: true
Size: 1.09 KB
Versions: 5
Compression:
Stored size: 1.09 KB
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2015 Simone Carletti <weppos@weppos.net> #++ require_relative 'base_verisign' module Whois class Parsers # Parser for the whois.verisign-grs.com server. # # @see Whois::Parsers::Example # The Example parser for the list of all available methods. # class WhoisVerisignGrsCom < BaseVerisign property_supported :expires_on do node("Expiration Date") { |value| parse_time(value) } end property_supported :registrar do node("Registrar") do |value| Parser::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
Version data entries
5 entries across 5 versions & 2 rubygems