Parent

Class/Module Index [+]

Quicksearch

Whois::Record::Parser::WhoisCiraCa

whois.cira.ca parser

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.

Public Instance Methods

invalid?() click to toggle source

NEWPROPERTY

# File lib/whois/record/parser/whois.cira.ca.rb, line 139
def invalid?
  cached_properties_fetch(:invalid?) do
    status == :invalid
  end
end
schema() click to toggle source

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
valid?() click to toggle source

NEWPROPERTY

# File lib/whois/record/parser/whois.cira.ca.rb, line 132
def valid?
  cached_properties_fetch(:valid?) do
    !invalid?
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.