Class: Whois::Parsers::WhoisNicUk
- 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
Instance Method Summary collapse
-
#invalid? ⇒ Boolean
NEWPROPERTY.
-
#response_throttled? ⇒ Boolean
Checks whether the response has been throttled.
-
#valid? ⇒ Boolean
NEWPROPERTY.
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
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.
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
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 |