Sha256: 1be9a0eafda02164515d29f076c1e41a8ab8527b10b759fd14c43423d37bd818

Contents?: true

Size: 695 Bytes

Versions: 2

Compression:

Stored size: 695 Bytes

Contents

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


require_relative 'base'
require_relative 'base_cocca'


module Whois
  class Parsers

    # Parser for the whois.nic.ec server.
    #
    # @see Whois::Parsers::Example
    #   The Example parser for the list of all available methods.
    #
    class WhoisNicEc < BaseCocca
      property_supported :status do
        if content_for_scanner =~ /Status:\s+(.+?)\n/
          super()
        else
          registrar ? :registered : :available
          # Whois::Parser.bug!(ParserError, "Unable to parse status.")
        end
      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.nic.ec.rb
whois-parser-1.1.0 lib/whois/parsers/whois.nic.ec.rb