Skip to content

Instantly share code, notes, and snippets.

@tbbooher
Last active September 13, 2015 02:13
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 tbbooher/62aef841c573ecbda027 to your computer and use it in GitHub Desktop.
Save tbbooher/62aef841c573ecbda027 to your computer and use it in GitHub Desktop.
def integer_quantities
quantities = [:entry_date, :purity, :devotional, :discipline, :fitness, :wife, :relational, :stress, :facepicking]
output = Hash.new
self.journal_entries.each do |j|
quantities.each do |q|
output[q][:data].push(j[q])
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment