Class: Whois::Parsers::WhoisNicUk

Inherits:
Base
  • Object
show all
Defined in:
lib/whois/parsers/whois.nic.uk.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.nic.uk 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)


164
165
166
167
168
# File 'lib/whois/parsers/whois.nic.uk.rb', line 164

def invalid?
  cached_properties_fetch(:invalid?) do
    !!(content_for_scanner =~ /This domain cannot be registered/)
  end
end

#response_throttled?Boolean

Checks whether the response has been throttled.

Examples:

The WHOIS query quota for 127.0.0.1 has been exceeded
and will be replenished in 50 seconds.

Returns:

  • (Boolean)


151
152
153
# File 'lib/whois/parsers/whois.nic.uk.rb', line 151

def response_throttled?
  !!(content_for_scanner =~ /The WHOIS query quota for .+ has been exceeded/)
end

#valid?Boolean

NEWPROPERTY

Returns:

  • (Boolean)


157
158
159
160
161
# File 'lib/whois/parsers/whois.nic.uk.rb', line 157

def valid?
  cached_properties_fetch(:valid?) do
    !invalid?
  end
end