Class: Stall::ProductListStalenessHandlingService
- Inherits:
-
BaseService
- Object
- BaseService
- Stall::ProductListStalenessHandlingService
- Defined in:
- app/services/stall/product_list_staleness_handling_service.rb
Instance Attribute Summary collapse
-
#cart ⇒ Object
readonly
Returns the value of attribute cart.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(cart) ⇒ ProductListStalenessHandlingService
constructor
A new instance of ProductListStalenessHandlingService.
Constructor Details
#initialize(cart) ⇒ ProductListStalenessHandlingService
Returns a new instance of ProductListStalenessHandlingService.
5 6 7 |
# File 'app/services/stall/product_list_staleness_handling_service.rb', line 5 def initialize(cart) @cart = cart end |
Instance Attribute Details
#cart ⇒ Object (readonly)
Returns the value of attribute cart.
3 4 5 |
# File 'app/services/stall/product_list_staleness_handling_service.rb', line 3 def cart @cart end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'app/services/stall/product_list_staleness_handling_service.rb', line 9 def call handle_line_items end |