Class: FarmingEngineers::Invoices::Common::Purchase
- Inherits:
-
HistoryItem
- Object
- HistoryItem
- FarmingEngineers::Invoices::Common::Purchase
- 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, description, amount) ⇒ Purchase
constructor
A new instance of Purchase.
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 |