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.



28
29
30
31
32
# File 'lib/farming_engineers/invoices/common.rb', line 28

def initialize(date, amount)
  @date = date
  @description = 'Deposit'
  @total = -amount
end