Class: Whois::Parsers::WhoisDomainRegistryNl

Inherits:
Base
  • Object
show all
Defined in:
lib/whois/parsers/whois.domain-registry.nl.rb

Overview

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.

Parser for the whois.domain-registry.nl server.

Instance Attribute Summary

Attributes inherited from Base

#part

Instance Method Summary collapse

Methods inherited from Base

#changed?, #contacts, #content, #initialize, #is, parse_time, property_not_implemented, property_not_supported, property_register, property_state, property_state?, property_supported, #property_supported?, #response_incomplete?, #unchanged?, #validate!

Constructor Details

This class inherits a constructor from Whois::Parsers::Base

Instance Method Details

#response_throttled?Boolean

Checks whether the response has been throttled.

Examples:

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

Returns:

  • (Boolean)


101
102
103
104
105
106
107
108
109
110
# File 'lib/whois/parsers/whois.domain-registry.nl.rb', line 101

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?Boolean

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

Returns:

  • (Boolean)


116
117
118
# File 'lib/whois/parsers/whois.domain-registry.nl.rb', line 116

def response_unavailable?
  !!(content_for_scanner =~ /Server too busy, try again later/)
end