Class: Whois::Parsers::WhoisDenicDe
- Includes:
- Scanners::Scannable
- Defined in:
- lib/whois/parsers/whois.denic.de.rb
Overview
Parser for the whois.denic.de server.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#invalid? ⇒ Boolean
NEWPROPERTY invalid?.
- #response_error? ⇒ Boolean
-
#response_throttled? ⇒ Boolean
Checks whether the response has been throttled.
- #version ⇒ Object
Methods included from Scanners::Scannable
included, #node, #node?, #parse
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 invalid?
144 145 146 147 148 149 |
# File 'lib/whois/parsers/whois.denic.de.rb', line 144 def invalid? cached_properties_fetch :invalid? do node("Status") == "invalid" || response_error? end end |
#response_error? ⇒ Boolean
130 131 132 |
# File 'lib/whois/parsers/whois.denic.de.rb', line 130 def response_error? !!node("response:error") end |
#response_throttled? ⇒ Boolean
Checks whether the response has been throttled.
126 127 128 |
# File 'lib/whois/parsers/whois.denic.de.rb', line 126 def response_throttled? !!node("response:throttled") end |
#version ⇒ Object
135 136 137 138 139 140 141 |
# File 'lib/whois/parsers/whois.denic.de.rb', line 135 def version cached_properties_fetch :version do if content_for_scanner =~ /^% Version: (.+)$/ $1 end end end |