Sha256: 176a68a54f6c7c3cd7b7754888e2083752f5eca5996125a36adcd48fcacee5bd

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 KB

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2014 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

12 entries across 12 versions & 1 rubygems

Version Path
whois-3.6.2 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.6.1 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.6.0 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.9 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.8 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.7 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.6 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.5 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.4 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.3 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.2 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.5.1 lib/whois/record/parser/whois.verisign-grs.com.rb