Skip to content

Instantly share code, notes, and snippets.

@saturday
Created October 4, 2016 01:05
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 saturday/dbda279ee2359409d8d0b0c34a6218fb to your computer and use it in GitHub Desktop.
Save saturday/dbda279ee2359409d8d0b0c34a6218fb to your computer and use it in GitHub Desktop.
# The goal is to enumberate over the hashes and find the average minutes for that date.
array = [
{:date=>Tue, 12 Jul 2016, :seconds=>837.0},
{:date=>Tue, 09 Aug 2016, :seconds=>337.0},
{:date=>Tue, 09 Aug 2016, :seconds=>418.0},
{:date=>Tue, 09 Aug 2016, :seconds=>836.0}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment