-
-
Save jcortesg/4098e0f05e0b6c9cec241945257604b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
names =["email", "pass", "key" ]
values = []
event.tickets.each { |t| values << [ t.user.email, t.live_key ] }
hash = { version: 1, variables: [{names: names , values: values }]}
File.open("emails.json", "wb") { |file| file.puts JSON.pretty_generate(hash) }