class Gnucash::AccountTransaction
Class to link a transaction object to an Account
.
Attributes
value[R]
@return [Value] The transaction value for the linked account.
Public Class Methods
new(real_txn, value)
click to toggle source
Construct an AccountTransaction
object.
This method is used internally when building a Transaction
object.
@param real_txn [Transaction]
The linked Transaction object.
@param value [Value]
The value of the Transaction split for this account
# File lib/gnucash/account_transaction.rb, line 17 def initialize(real_txn, value) @real_txn = real_txn @value = value end
Public Instance Methods
attributes()
click to toggle source
Attributes available for inspection
@return [Array<Symbol>] Attributes used to build the inspection string @see Gnucash::Support::LightInspect
# File lib/gnucash/account_transaction.rb, line 31 def attributes %i[value] end
method_missing(*args)
click to toggle source
Pass through any missing method calls to the linked Transaction
object.
# File lib/gnucash/account_transaction.rb, line 23 def method_missing(*args) @real_txn.send(*args) end