Class: Search::ItemTextPresenter
- Inherits:
-
ItemPresenter
- Object
- ItemPresenter
- Search::ItemTextPresenter
- Defined in:
- app/presenters/search/item_text_presenter.rb
Overview
Plain-text presenter for item search results backed by ViewItem.
Returns label strings without HTML links for text-only output formats.
Instance Method Summary collapse
-
#item_thumbnail_link ⇒ nil
Text presenters do not render thumbnails.
-
#name_with_link ⇒ String
Returns the item name as plain text.
-
#sku_with_link ⇒ String
Returns the item SKU as plain text.
Instance Method Details
#item_thumbnail_link ⇒ nil
Text presenters do not render thumbnails.
13 |
# File 'app/presenters/search/item_text_presenter.rb', line 13 def item_thumbnail_link; end |
#name_with_link ⇒ String
Returns the item name as plain text.
25 26 27 |
# File 'app/presenters/search/item_text_presenter.rb', line 25 def name_with_link r.name end |
#sku_with_link ⇒ String
Returns the item SKU as plain text.
18 19 20 |
# File 'app/presenters/search/item_text_presenter.rb', line 18 def sku_with_link r.sku end |