Class: Spree::StoreCreditPrioritizer
- Inherits:
-
Object
- Object
- Spree::StoreCreditPrioritizer
- Defined in:
- app/models/spree/store_credit_prioritizer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(credits, _order) ⇒ StoreCreditPrioritizer
constructor
A new instance of StoreCreditPrioritizer.
Constructor Details
#initialize(credits, _order) ⇒ StoreCreditPrioritizer
Returns a new instance of StoreCreditPrioritizer.
5 6 7 |
# File 'app/models/spree/store_credit_prioritizer.rb', line 5 def initialize(credits, _order) @credits = credits end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'app/models/spree/store_credit_prioritizer.rb', line 9 def call credits.order_by_priority end |