Class: FarmingEngineers::Invoices::Common::Deposit
- Inherits:
-
HistoryItem
- Object
- HistoryItem
- FarmingEngineers::Invoices::Common::Deposit
- Defined in:
- lib/farming_engineers/invoices/common.rb
Instance Attribute Summary
Attributes inherited from HistoryItem
#date, #description, #quantity, #total
Instance Method Summary collapse
-
#initialize(date, amount) ⇒ Deposit
constructor
A new instance of Deposit.
Constructor Details
#initialize(date, amount) ⇒ Deposit
Returns a new instance of Deposit.
33 34 35 36 37 |
# File 'lib/farming_engineers/invoices/common.rb', line 33 def initialize(date, amount) @date = date @description = 'Deposit' @total = -amount end |