Parser for the whois.cira.ca server.
NOTE: This parser is just a stub and provides only a few basic methods to check for domain availability and get domain status. Please consider to contribute implementing missing methods. See WhoisNicIt parser for an explanation of all available methods and examples.
NEWPROPERTY
# File lib/whois/record/parser/whois.cira.ca.rb, line 139 def invalid? cached_properties_fetch(:invalid?) do status == :invalid end end
Attempts to detect and returns the schema version.
TODO: This is very empiric.
Use the available status in combination with the creation date label.
# File lib/whois/record/parser/whois.cira.ca.rb, line 121 def schema @schema ||= if content_for_scanner =~ /^% \(c\) (.+?) Canadian Internet Registration Authority/ case $1 when "2007" then "1" when "2010" then "2" end end @schema || Whois.bug!(ParserError, "Unable to detect schema version.") end
Generated with the Darkfish Rdoc Generator 2.