Class: Workarea::Storefront::FulfillmentItemViewModel
- Inherits:
-
ApplicationViewModel
- Object
- ApplicationViewModel
- Workarea::Storefront::FulfillmentItemViewModel
- Defined in:
- app/view_models/workarea/storefront/fulfillment_item_view_model.rb
Instance Method Summary collapse
Instance Method Details
#events ⇒ Object
4 5 6 |
# File 'app/view_models/workarea/storefront/fulfillment_item_view_model.rb', line 4 def events [:events] || [] end |
#quantity ⇒ Object
8 9 10 |
# File 'app/view_models/workarea/storefront/fulfillment_item_view_model.rb', line 8 def quantity [:quantity] || events.sum(&:quantity) end |