Class: Stall::ProductListStalenessHandlingService

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/stall/product_list_staleness_handling_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cartObject (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

#callObject



9
10
11
# File 'app/services/stall/product_list_staleness_handling_service.rb', line 9

def call
  handle_line_items
end