class Whois::Record::Parser::WhoisDenicDe
Parser for the whois.denic.de server.
@author Simone Carletti <weppos@weppos.net> @author Aaron Mueller <mail@aaron-mueller.de>
Public Instance Methods
invalid?()
click to toggle source
NEWPROPERTY invalid?
# File lib/whois/record/parser/whois.denic.de.rb, line 145 def invalid? cached_properties_fetch :invalid? do node("Status") == "invalid" || response_error? end end
response_error?()
click to toggle source
# File lib/whois/record/parser/whois.denic.de.rb, line 131 def response_error? !!node("response:error") end
response_throttled?()
click to toggle source
Checks whether the response has been throttled.
@return [Boolean]
@example
% Error: 55000000002 Connection refused; access control limit reached.
# File lib/whois/record/parser/whois.denic.de.rb, line 127 def response_throttled? !!node("response:throttled") end
version()
click to toggle source
# File lib/whois/record/parser/whois.denic.de.rb, line 136 def version cached_properties_fetch :version do if content_for_scanner =~ /^% Version: (.+)$/ $1 end end end
Private Instance Methods
build_contact(element, type)
click to toggle source
# File lib/whois/record/parser/whois.denic.de.rb, line 155 def build_contact(element, type) node(element) do |raw| Record::Contact.new(raw) do |c| c.type = type end end end