Class: FarmingEngineers::Invoices::Common::Purchase

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, description, amount) ⇒ Purchase

Returns a new instance of Purchase.



40
41
42
43
44
# File 'lib/farming_engineers/invoices/common.rb', line 40

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