Class: Search::ItemTextPresenter

Inherits:
ItemPresenter
  • Object
show all
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

Instance Method Details

Text presenters do not render thumbnails.

Returns:

  • (nil)


13
# File 'app/presenters/search/item_text_presenter.rb', line 13

def item_thumbnail_link; end

Returns the item name as plain text.

Returns:

  • (String)


25
26
27
# File 'app/presenters/search/item_text_presenter.rb', line 25

def name_with_link
  r.name
end

Returns the item SKU as plain text.

Returns:

  • (String)


18
19
20
# File 'app/presenters/search/item_text_presenter.rb', line 18

def sku_with_link
  r.sku
end