Class: Activity::ResourceList::QuoteFormatter
- Inherits:
-
BaseFormatter
- Object
- SimpleDelegator
- BaseFormatter
- Activity::ResourceList::QuoteFormatter
- Defined in:
- app/services/activity/resource_list.rb
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
Methods inherited from BaseFormatter
#created_at, #identifier, #initialize, #state
Constructor Details
This class inherits a constructor from Activity::ResourceList::BaseFormatter
Instance Method Details
#display ⇒ Object
236 237 238 |
# File 'app/services/activity/resource_list.rb', line 236 def display [reference_number, state, total, opportunity&.name, created_at].compact.join(' - ') end |
#total ⇒ Object
240 241 242 |
# File 'app/services/activity/resource_list.rb', line 240 def total Money.new((record.total || 0) * 100, record.currency).format end |