Class: Search::LocatorRecordTextPresenter
- Inherits:
-
LocatorRecordPresenter
- Object
- LocatorRecordPresenter
- Search::LocatorRecordTextPresenter
- Defined in:
- app/presenters/search/locator_record_text_presenter.rb
Overview
Plain-text presenter for locator-record search results backed by ViewLocatorRecord.
Delegated Instance Attributes collapse
-
#star_status_level ⇒ Object
Alias for R#star_status_level.
Instance Method Summary collapse
-
#customer_link ⇒ String
Returns the customer name and number as plain text.
Instance Method Details
#customer_link ⇒ String
Returns the customer name and number as plain text.
11 12 13 |
# File 'app/presenters/search/locator_record_text_presenter.rb', line 11 def customer_link "#{r.customer_name} (CN#{r.customer_id})" end |
#star_status_level ⇒ Object
Alias for R#star_status_level
18 |
# File 'app/presenters/search/locator_record_text_presenter.rb', line 18 delegate :star_status_level, to: :r |