Class: FarmingEngineers::Invoices::Common::Deposit

Inherits:
HistoryItem
  • Object
show all
Defined in:
lib/farming_engineers/invoices/common.rb

Instance Attribute Summary

Attributes inherited from HistoryItem

#date, #description, #quantity, #total

Instance Method Summary collapse

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