Sha256: 7974fd6886c1b812ad8a42dbbd9af6a98ecf25bbaddc4784ceb3f1004b6237f1

Contents?: true

Size: 853 Bytes

Versions: 13

Compression:

Stored size: 853 Bytes

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_icann_compliant'


module Whois
  class Record
    class Parser

      # Parser for the whois.networksolutions.com server.
      #
      # @see Whois::Record::Parser::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
end

Version data entries

13 entries across 13 versions & 1 rubygems

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