Skip to content

Instantly share code, notes, and snippets.

@jcortesg
Created October 20, 2020 06:09
Show Gist options
  • Save jcortesg/4098e0f05e0b6c9cec241945257604b7 to your computer and use it in GitHub Desktop.
Save jcortesg/4098e0f05e0b6c9cec241945257604b7 to your computer and use it in GitHub Desktop.
@jcortesg
Copy link
Author

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) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment