Sha256: 5d11a266b139270d8c830ecc40d5e516312f4cbe924d66943a9659eac6902404

Contents?: true

Size: 777 Bytes

Versions: 2

Compression:

Stored size: 777 Bytes

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net>
#++


require_relative 'base_icann_compliant'


module Whois
  class Parsers

    # Parser for the whois.networksolutions.com server.
    #
    # @see Whois::Parsers::Example
    #   The Example parser for the list of all available methods.
    #
    class WhoisNetworksolutionsCom < BaseIcannCompliant
      self.scanner = Scanners::BaseIcannCompliant, {
          pattern_available: /^No match for "[\w\.]+"\.\n/
      }

      private

      def build_contact(element, type)
        if (contact = super) && !contact.state.present?
          contact.state = node("#{element} State")
        end
        contact
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whois-parser-1.2.0 lib/whois/parsers/whois.networksolutions.com.rb
whois-parser-1.1.0 lib/whois/parsers/whois.networksolutions.com.rb