class Aloe::Entry
Public Instance Methods
amount()
click to toggle source
Return the amount of entry
@return [Money] The amount
# File lib/aloe/entry.rb, line 33 def amount Money.new read_attribute(:amount), currency end
deposit?()
click to toggle source
Is the entry deposit of funds?
@return [true, false]
# File lib/aloe/entry.rb, line 47 def deposit? !withdrawal? end
transaction()
click to toggle source
Return the related transaction.
@return [Aloe::Transaction]
# File lib/aloe/entry.rb, line 40 def transaction credit_transaction || debit_transaction end
withdrawal?()
click to toggle source
Is the entry withdrawal of funds?
@return [true, false]
# File lib/aloe/entry.rb, line 54 def withdrawal? amount.negative? end