class Whois::Record::Parser::WhoisTldEe

Parser for the whois.tld.ee server.

@see Whois::Record::Parser::Example

The Example parser for the list of all available methods.

Private Instance Methods

build_contact(element, type) click to toggle source
# File lib/whois/record/parser/whois.tld.ee.rb, line 118
def build_contact(element, type)
  node(element) do |hash|
    el_size = Array.wrap(hash['name']).size

    (0...el_size).map do |i|
      Record::Contact.new(
        type:       type,
        name:       Array.wrap(hash['name'])[i],
        email:      Array.wrap(hash['email'])[i],
        updated_on: Time.parse(Array.wrap(hash['changed'])[i])
      )
    end
  end
end