Created
September 24, 2012 20:56
-
-
Save anonymous/3778325 to your computer and use it in GitHub Desktop.
DataMapper output.
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
data = AggregateOpenTicket.aggregate( | |
:date, | |
:type, | |
:amount.sum, | |
:order => [ :date.asc ] | |
) | |
output: | |
[ | |
[Sun, 23 Sep 2012, "INCIDENT", 426], | |
[Sun, 23 Sep 2012, "SR", 293], | |
[Mon, 24 Sep 2012, "INCIDENT", 358], | |
[Mon, 24 Sep 2012, "SR", 293] | |
] | |
desired output: | |
[ | |
[Sun, 23 Sep 2012, 293, 426], | |
[Mon, 24 Sep 2012, 293, 358] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment