Class: Workarea::Storefront::WishListItemViewModel
- Inherits:
-
ApplicationViewModel
- Object
- ApplicationViewModel
- Workarea::Storefront::WishListItemViewModel
- Defined in:
- app/view_models/workarea/storefront/wish_list_item_view_model.rb
Instance Method Summary collapse
Instance Method Details
#customized? ⇒ Boolean
15 16 17 |
# File 'app/view_models/workarea/storefront/wish_list_item_view_model.rb', line 15 def customized? customizations.present? end |
#inventory_status ⇒ Object
19 20 21 |
# File 'app/view_models/workarea/storefront/wish_list_item_view_model.rb', line 19 def inventory_status InventoryStatusViewModel.new(inventory). end |
#product ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/view_models/workarea/storefront/wish_list_item_view_model.rb', line 6 def product @product ||= ProductViewModel.wrap( product_model, sku: sku, pricing: [:pricing], inventory: [:inventory_collection] ) end |