Class: Whois::Parsers::WhoisDnsBe

Inherits:
Base
  • Object
show all
Defined in:
lib/whois/parsers/whois.dns.be.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.dns.be 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?, #response_unavailable?, #unchanged?, #validate!

Constructor Details

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

Instance Method Details

#invalid?Boolean

NEWPROPERTY

Returns:

  • (Boolean)


111
112
113
114
115
# File 'lib/whois/parsers/whois.dns.be.rb', line 111

def invalid?
  cached_properties_fetch(:invalid?) do
    status == :invalid
  end
end

#response_blocked?Boolean

Checks whether the server has been blocked.

Returns:

  • (Boolean)


105
106
107
# File 'lib/whois/parsers/whois.dns.be.rb', line 105

def response_blocked?
  !!(content_for_scanner =~ /^-3: IP address blocked/)
end

#response_throttled?Boolean

Checks whether the response has been throttled.

Returns:

  • (Boolean)


97
98
99
100
# File 'lib/whois/parsers/whois.dns.be.rb', line 97

def response_throttled?
  !!(content_for_scanner =~ /^% (Excessive querying|Maximum queries per hour reached)/) ||
  response_blocked?
end