Last active
April 11, 2019 12:48
-
-
Save pasikonik/95f651e6fcff366f4d2dbcb28c5a7566 to your computer and use it in GitHub Desktop.
ruby magick
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
users_summary.group_by { |s| s[:user] }.map do |user, value| | |
{ user: user, dailySummary: value.inject(0) { |s, h| s + h[:dailySummary] } } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment