Sha256: d6a4d94479c6010038426aa5b6992597a4b25c7de5e11fd9c2d3a17f5594abf6
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/parser/base_cocca' module Whois class Record class Parser # Parser for the whois.na-nic.com.na server. class WhoisNaNicComNa < BaseCocca property_supported :status do if content_for_scanner =~ /Status:\s+(.+?)\n/ case $1.downcase when "active" then :registered when "not registered" then :available when "suspended" then :inactive else Whois.bug!(ParserError, "Unknown status `#{$1}'.") 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.2.0 | lib/whois/record/parser/whois.na-nic.com.na.rb |