From 4cf3949005a34ce2ea7e42e9ee4bbe472a7f27db Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 27 Aug 2013 21:15:30 -0400 Subject: [PATCH] Transaction: expose splits attribute --- lib/gnucash/transaction.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/gnucash/transaction.rb b/lib/gnucash/transaction.rb index e5c8670..ef5b6fa 100644 --- a/lib/gnucash/transaction.rb +++ b/lib/gnucash/transaction.rb @@ -13,6 +13,9 @@ module Gnucash # _String_: The description of the transaction attr_accessor :description + # _Array_ of _Hash_ with keys +account+ and +value+ + attr_accessor :splits + # Create a new Transaction object # === Arguments # +book+ _Book_:: The Gnucash::Book containing the transaction @@ -32,7 +35,7 @@ module Gnucash end account.add_transaction(AccountTransaction.new(self, value)) { - account_id: account_id, + account: account, value: value, } end