lib/whois/record/parser/whois.dns.pl.rb in whois-3.1.3 vs lib/whois/record/parser/whois.dns.pl.rb in whois-3.2.0

- old
+ new

@@ -94,11 +94,22 @@ Record::Nameserver.new(:name => line.chomp(".")) end end end + # Checks whether the response has been throttled. + # + # @return [Boolean] + # + # @example + # Looup quota exceeded. + # + def response_throttled? + !!(content_for_scanner =~ /^request limit exceeded for/) + end - private + + private def build_contact(element, type) match = content_for_scanner.slice(/#{element}:\n((.+\n)+)\n/, 1) return unless match