# File lib/whois/answer/parser/whois.nic.it.rb, line 128 def contact(element, type) node(element) do |raw| address = (raw["Address"] || "").split("\n") Answer::Contact.new( :id => raw["ContactID"], :type => type, :name => raw["Name"], :organization => raw["Organization"], :address => address[0], :city => address[1], :zip => address[2], :country_code => address[4], :created_on => raw["Created"] ? Time.parse(raw["Created"]) : nil, :updated_on => raw["Last Update"] ? Time.parse(raw["Created"]) : nil ) end end