freerobby/sendgrid_toolkit — pull request #6 by eliasbaixas (2011-10-08 11:53:15+00:00)
Title: fix bug for aggregate statistics and given category.

when category is specified in stats.get with aggregate=1,
the returned value is an array (instead of a hash, when no category is given)
so it throws a NoMethodERror exception because array does not respond to has_key?
THis fixes that