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 |
# File 'app/presenters/spree/product_summary_presenter.rb', line 5 def initialize(product) @product = product end |
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 |
# File 'app/presenters/spree/product_summary_presenter.rb', line 9 def call { name: @product.name, images: images } end |