Skip to content

Instantly share code, notes, and snippets.

@coop
Created May 14, 2012 05:29
Show Gist options
  • Select an option

  • Save coop/2691967 to your computer and use it in GitHub Desktop.

Select an option

Save coop/2691967 to your computer and use it in GitHub Desktop.
def transactions
responses.inject([]) do |transactions, response|
transactions << response.transactions
end.sort_by &:timestamp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment