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