Files

Class/Module Index [+]

Quicksearch

Whois::Record::Parser::WhoisDomainRegistryNl

whois.domain-registry.nl parser

Parser for the whois.domain-registry.nl 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

response_throttled?() click to toggle source

Checks whether the response has been throttled.

@return [Boolean]

@example

whois.domain-registry.nl: only 1 request per second allowed, try again later

@example

whois.domain-registry.nl: daily whois-limit exceeded
# File lib/whois/record/parser/whois.domain-registry.nl.rb, line 99
def response_throttled?
  case content_for_scanner
  when /^#{Regexp.escape("whois.domain-registry.nl: only 1 request per second allowed, try again later")}/
    true
  when /^#{Regexp.escape("whois.domain-registry.nl: daily whois-limit exceeded")}/
    true
  else
    false
  end
end
response_unavailable?() click to toggle source

Checks whether this response contains a message that can be reconducted to a "WHOIS Server Unavailable" status.

@return [Boolean]

# File lib/whois/record/parser/whois.domain-registry.nl.rb, line 114
def response_unavailable?
  !!(content_for_scanner =~ /Server too busy, try again later/)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.