Class: Spree::ProductSummaryPresenter
- Inherits:
-
Object
- Object
- Spree::ProductSummaryPresenter
- Defined in:
- app/presenters/spree/product_summary_presenter.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(product) ⇒ ProductSummaryPresenter
constructor
A new instance of ProductSummaryPresenter.
Constructor Details
#initialize(product) ⇒ ProductSummaryPresenter
Returns a new instance of ProductSummaryPresenter.
5 6 7 8 |
# File 'app/presenters/spree/product_summary_presenter.rb', line 5 def initialize(product) Spree::Deprecation.warn('Spree::ProductSummaryPresenter is deprecated and will be removed in Spree 5.5.') @product = product end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 |
# File 'app/presenters/spree/product_summary_presenter.rb', line 10 def call { name: @product.name, images: images } end |