Class: Search::SupportCaseTextPresenter
- Inherits:
-
SupportCasePresenter
- Object
- SupportCasePresenter
- Search::SupportCaseTextPresenter
- Defined in:
- app/presenters/search/support_case_text_presenter.rb
Overview
Text-only variant of SupportCasePresenter.
Instance Method Summary collapse
-
#participants ⇒ String
Returns the participant names joined by semicolons.
-
#rooms ⇒ String
Returns the linked room reference numbers joined by semicolons.
-
#support_case_link ⇒ String
Returns the support case number as plain text.
Instance Method Details
#participants ⇒ String
Returns the participant names joined by semicolons.
17 18 19 |
# File 'app/presenters/search/support_case_text_presenter.rb', line 17 def participants r.support_case_participants.select(&:party).map { |scp| scp.party.full_name }.join('; ') end |
#rooms ⇒ String
Returns the linked room reference numbers joined by semicolons.
24 25 26 |
# File 'app/presenters/search/support_case_text_presenter.rb', line 24 def rooms r.room_configurations.map(&:reference_number).join('; ') end |
#support_case_link ⇒ String
Returns the support case number as plain text.
10 11 12 |
# File 'app/presenters/search/support_case_text_presenter.rb', line 10 def support_case_link r.case_number end |