Class: Search::ProductCatalogTextPresenter
- Inherits:
-
ProductCatalogPresenter
- Object
- ProductCatalogPresenter
- Search::ProductCatalogTextPresenter
- Defined in:
- app/presenters/search/product_catalog_text_presenter.rb
Overview
Text-only row presenter for ProductCatalogSearch — renders the same cells as
ProductCatalogPresenter but without HTML links, for CSV/Excel export
or other plain-text consumers.
Delegated Instance Attributes collapse
-
#effective_price ⇒ Object
Alias for R#effective_price.
-
#effective_price_with_vat ⇒ Object
Alias for R#effective_price_with_vat.
-
#item_sku ⇒ Object
Alias for R#item_sku.
-
#price ⇒ Object
Alias for R#price.
-
#price_difference_factor ⇒ Object
Alias for R#price_difference_factor.
-
#price_with_vat ⇒ Object
Alias for R#price_with_vat.
-
#retail_price ⇒ Object
Alias for R#retail_price.
-
#sale_price ⇒ Object
Alias for R#sale_price.
-
#sale_price_with_vat ⇒ Object
Alias for R#sale_price_with_vat.
Instance Method Summary collapse
-
#catalog ⇒ String
Catalog name.
-
#parent_catalog_item ⇒ String
Parent catalog item name.
Instance Method Details
#catalog ⇒ String
Catalog name.
12 13 14 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 12 def catalog r.catalog_name end |
#effective_price ⇒ Object
Alias for R#effective_price
31 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 31 delegate :effective_price, to: :r |
#effective_price_with_vat ⇒ Object
Alias for R#effective_price_with_vat
37 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 37 delegate :effective_price_with_vat, to: :r |
#item_sku ⇒ Object
Alias for R#item_sku
7 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 7 delegate :item_sku, to: :r |
#parent_catalog_item ⇒ String
Parent catalog item name.
19 20 21 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 19 def parent_catalog_item r.parent_catalog_name end |
#price ⇒ Object
Alias for R#price
25 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 25 delegate :price, to: :r |
#price_difference_factor ⇒ Object
Alias for R#price_difference_factor
23 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 23 delegate :price_difference_factor, to: :r |
#price_with_vat ⇒ Object
Alias for R#price_with_vat
33 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 33 delegate :price_with_vat, to: :r |
#retail_price ⇒ Object
Alias for R#retail_price
27 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 27 delegate :retail_price, to: :r |
#sale_price ⇒ Object
Alias for R#sale_price
29 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 29 delegate :sale_price, to: :r |
#sale_price_with_vat ⇒ Object
Alias for R#sale_price_with_vat
35 |
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 35 delegate :sale_price_with_vat, to: :r |