Class: Activity::ResourceList::SupportCaseFormatter
- Inherits:
-
BaseFormatter
- Object
- SimpleDelegator
- BaseFormatter
- Activity::ResourceList::SupportCaseFormatter
- Defined in:
- app/services/activity/resource_list.rb
Overview
Service object: support case formatter.
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
-
#display ⇒ String
Option label: case number, plain-text description, and date.
Methods inherited from BaseFormatter
#created_at, #identifier, #initialize, #state
Constructor Details
This class inherits a constructor from Activity::ResourceList::BaseFormatter
Instance Method Details
#display ⇒ String
Option label: case number, plain-text description, and date.
342 343 344 345 |
# File 'app/services/activity/resource_list.rb', line 342 def display description = Nokogiri::HTML(description).text if description [case_number, description, created_at].compact.join(' - ') end |