Class: Stall::CartsCleaner
- Inherits:
-
Object
- Object
- Stall::CartsCleaner
- Defined in:
- lib/stall/carts_cleaner.rb
Instance Attribute Summary collapse
-
#cart_model ⇒ Object
readonly
Returns the value of attribute cart_model.
Instance Method Summary collapse
- #clean! ⇒ Object
-
#initialize(cart_model) ⇒ CartsCleaner
constructor
A new instance of CartsCleaner.
Constructor Details
#initialize(cart_model) ⇒ CartsCleaner
Returns a new instance of CartsCleaner.
5 6 7 |
# File 'lib/stall/carts_cleaner.rb', line 5 def initialize(cart_model) @cart_model = cart_model end |
Instance Attribute Details
#cart_model ⇒ Object (readonly)
Returns the value of attribute cart_model.
3 4 5 |
# File 'lib/stall/carts_cleaner.rb', line 3 def cart_model @cart_model end |
Instance Method Details
#clean! ⇒ Object
9 10 11 12 |
# File 'lib/stall/carts_cleaner.rb', line 9 def clean! clean_empty_carts clean_aborted_carts end |