Sha256: 611a652e98a6b9e98ca30a24ffe566cc948c7afbded22ff1f0a28f4c30f5f160
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 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.na-nic.com.na server. class WhoisNaNicComNa < BaseCocca property_supported :status do if content_for_scanner =~ /Status:\s+(.+?)\n/ case $1.downcase when "active" :registered when "delegated" :registered when "not registered" :available when "suspended" :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.7.0 | lib/whois/record/parser/whois.na-nic.com.na.rb |