Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/monzo/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def self.find(transaction_id, options = {})
# account_id - The account id to retrieve transactions from.
#
# Returns an Array of Monzo::Transaction.
def self.all(account_id)
response = Monzo.client.get("/transactions", :account_id => account_id)
def self.all(account_id, options = {})
options[:account_id] = account_id
response = Monzo.client.get("/transactions", options)
parsed_response = JSON.parse(response.body, :symbolize_names => true)

parsed_response[:transactions].map do |item|
Expand Down
2 changes: 1 addition & 1 deletion lib/monzo/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Monzo
# Public: The version number of the gem.
VERSION = "0.1.0"
VERSION = "0.1.1"
end
2 changes: 1 addition & 1 deletion spec/version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

describe Monzo do
it "has a version number" do
expect(Monzo::VERSION).to eql("0.1.0")
expect(Monzo::VERSION).to eql("0.1.1")
end
end