class Whois::Parsers::WhoisTldEe
Parser
for the whois.tld.ee server.
The Example parser for the list of all available methods.
Private Instance Methods
build_contact(element, type)
click to toggle source
# File lib/whois/parsers/whois.tld.ee.rb, line 117 def build_contact(element, type) node(element) do |hash| el_size = Array.wrap(hash['name']).size (0...el_size).map do |i| Parser::Contact.new( type: type, name: Array.wrap(hash['name'])[i], email: Array.wrap(hash['email'])[i], updated_on: parse_time(Array.wrap(hash['changed'])[i]) ) end end end