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

Version Path
hetzner-whois-parser-1.0.1.rc2 lib/whois/parsers/whois.verisign-grs.com.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/parsers/whois.verisign-grs.com.rb
whois-parser-1.0.0 lib/whois/parsers/whois.verisign-grs.com.rb
whois-parser-1.0.0.pre.beta2 lib/whois/parsers/whois.verisign-grs.com.rb
whois-parser-1.0.0.pre.beta1 lib/whois/parsers/whois.verisign-grs.com.rb