Skip to content

Instantly share code, notes, and snippets.

@klochner
Created September 30, 2011 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klochner/1255270 to your computer and use it in GitHub Desktop.
Save klochner/1255270 to your computer and use it in GitHub Desktop.
leads_by_email_hash.each_with_index do |hash, index|
by_name = leads_by_name_hash[index]
if closes_by_email_hash.include?(hash)
out += "#{hash[:community]},#{by_name[:name]},#{hash[:email]},#{sources[index]},X\n"
elsif closes_by_name_hash.include?(by_name)
out += "#{hash[:community]},#{by_name[:name]},#{hash[:email]},#{sources[index]},X\n"
end
end
puts out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment