Class: Search::SupplierItemTextPresenter
- Inherits:
-
SupplierItemPresenter
- Object
- SupplierItemPresenter
- Search::SupplierItemTextPresenter
- Defined in:
- app/presenters/search/supplier_item_text_presenter.rb
Overview
Text-only variant of SupplierItemPresenter.
Instance Method Summary collapse
-
#active ⇒ String
Returns a "Yes"/"No" label for the active flag.
-
#item_link ⇒ String?
Returns the supplier item SKU as plain text, if available.
Instance Method Details
#active ⇒ String
Returns a "Yes"/"No" label for the active flag.
19 20 21 |
# File 'app/presenters/search/supplier_item_text_presenter.rb', line 19 def active h.y r.active end |
#item_link ⇒ String?
Returns the supplier item SKU as plain text, if available.
10 11 12 13 14 |
# File 'app/presenters/search/supplier_item_text_presenter.rb', line 10 def item_link return unless r.has_columns?(:sku, :item_id) r.sku end |