Sha256: 17067a0810d7aac5d322cd54f4683fbb88a0b13dc2ba3a0ae90da8c0f99b6467
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/parser/base_cocca' module Whois class Record class Parser # Parser for the whois.nic.gs server. class WhoisNicGs < BaseCocca property_supported :status do if content_for_scanner =~ /Status:\s+(.+?)\n/ case s = $1.downcase when "active" then :registered when "delegated" then :registered when "not registered" then :available when /pending delete/ then :redemption else Whois.bug!(ParserError, "Unknown status `#{s}'.") end else Whois.bug!(ParserError, "Unable to parse status.") end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-2.6.4 | lib/whois/record/parser/whois.nic.gs.rb |