Class: Search::ProductCatalogTextPresenter

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

Instance Method Summary collapse

Instance Method Details

#catalogString

Catalog name.

Returns:

  • (String)


12
13
14
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 12

def catalog
  r.catalog_name
end

#effective_priceObject

Alias for R#effective_price

Returns:

  • (Object)

    R#effective_price

See Also:



31
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 31

delegate :effective_price, to: :r

#effective_price_with_vatObject

Alias for R#effective_price_with_vat

Returns:

  • (Object)

    R#effective_price_with_vat

See Also:



37
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 37

delegate :effective_price_with_vat, to: :r

#item_skuObject

Alias for R#item_sku

Returns:

  • (Object)

    R#item_sku

See Also:



7
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 7

delegate :item_sku, to: :r

#parent_catalog_itemString

Parent catalog item name.

Returns:

  • (String)


19
20
21
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 19

def parent_catalog_item
  r.parent_catalog_name
end

#priceObject

Alias for R#price

Returns:

  • (Object)

    R#price

See Also:



25
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 25

delegate :price, to: :r

#price_difference_factorObject

Alias for R#price_difference_factor

Returns:

  • (Object)

    R#price_difference_factor

See Also:



23
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 23

delegate :price_difference_factor, to: :r

#price_with_vatObject

Alias for R#price_with_vat

Returns:

  • (Object)

    R#price_with_vat

See Also:



33
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 33

delegate :price_with_vat, to: :r

#retail_priceObject

Alias for R#retail_price

Returns:

  • (Object)

    R#retail_price

See Also:



27
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 27

delegate :retail_price, to: :r

#sale_priceObject

Alias for R#sale_price

Returns:

  • (Object)

    R#sale_price

See Also:



29
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 29

delegate :sale_price, to: :r

#sale_price_with_vatObject

Alias for R#sale_price_with_vat

Returns:

  • (Object)

    R#sale_price_with_vat

See Also:



35
# File 'app/presenters/search/product_catalog_text_presenter.rb', line 35

delegate :sale_price_with_vat, to: :r