diff --git a/lib/monzo/transaction.rb b/lib/monzo/transaction.rb index a261792..81d3665 100644 --- a/lib/monzo/transaction.rb +++ b/lib/monzo/transaction.rb @@ -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| diff --git a/lib/monzo/version.rb b/lib/monzo/version.rb index b75fb3c..1f9e6aa 100644 --- a/lib/monzo/version.rb +++ b/lib/monzo/version.rb @@ -1,4 +1,4 @@ module Monzo # Public: The version number of the gem. - VERSION = "0.1.0" + VERSION = "0.1.1" end diff --git a/spec/version_spec.rb b/spec/version_spec.rb index 342a2af..191b3c8 100644 --- a/spec/version_spec.rb +++ b/spec/version_spec.rb @@ -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