Class: Whois::Parsers::WhoisDenicDe

Inherits:
Base
  • Object
show all
Includes:
Scanners::Scannable
Defined in:
lib/whois/parsers/whois.denic.de.rb

Overview

Parser for the whois.denic.de server.

Author:

Instance Attribute Summary

Attributes inherited from Base

#part

Instance Method Summary collapse

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?

Returns:

  • (Boolean)


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

Returns:

  • (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.

Examples:

% Error: 55000000002 Connection refused; access control limit reached.

Returns:

  • (Boolean)


126
127
128
# File 'lib/whois/parsers/whois.denic.de.rb', line 126

def response_throttled?
  !!node("response:throttled")
end

#versionObject



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