Sha256: aea63fd9edb997c81dd5a452cbf9ae69cd4885c730906e32b1ede7ca4eaeed4b

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 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 :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.5.0 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.4.5 lib/whois/record/parser/whois.verisign-grs.com.rb
whois-3.4.4 lib/whois/record/parser/whois.verisign-grs.com.rb