class Whois::Parsers::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/parsers/whois.denic.de.rb, line 144
def invalid?
  cached_properties_fetch :invalid? do
    node("Status") == "invalid" ||
    response_error?
  end
end
response_error?() click to toggle source
# File lib/whois/parsers/whois.denic.de.rb, line 130
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/parsers/whois.denic.de.rb, line 126
def response_throttled?
  !!node("response:throttled")
end
version() click to toggle source
# 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

Private Instance Methods

build_contact(element, type) click to toggle source
# File lib/whois/parsers/whois.denic.de.rb, line 154
def build_contact(element, type)
  node(element) do |raw|
    Parser::Contact.new(raw) do |c|
      c.type = type
    end
  end
end