class Whois::Record::Parser::WhoisRegistryNetZa
Parser for the whois.registry.za.net server.
@note This parser is just a stub and provides only a few basic methods
to check for domain availability and get domain status. Please consider to contribute implementing missing methods.
@see Whois::Record::Parser::Example
The Example parser for the list of all available methods.
Public Instance Methods
response_throttled?()
click to toggle source
Checks whether the response has been throttled.
@return [Boolean]
@example
-1: Please go away for 90 Seconds
# File lib/whois/record/parser/whois.registry.net.za.rb, line 115 def response_throttled? !!(content_for_scanner =~ /Please go away for \d+ Seconds/) end
Private Instance Methods
build_contact(node)
click to toggle source
# File lib/whois/record/parser/whois.registry.net.za.rb, line 121 def build_contact(node) lines = node.dup fax, phone, email = 3.times.map { lines.pop.split(":", 2).last.strip.presence } name = lines.delete_if(&:blank?).join("\n") Record::Contact.new( type: Whois::Record::Contact::TYPE_REGISTRANT, name: name, address: Array.wrap(node("node:registrant_address")).join("\n"), phone: phone, fax: fax, email: email ) end
parse_date(date_string)
click to toggle source
# File lib/whois/record/parser/whois.registry.net.za.rb, line 137 def parse_date(date_string) Time.parse(date_string) if date_string end