Class: Spree::StoreCreditPrioritizer

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree/store_credit_prioritizer.rb

Instance Method Summary collapse

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

#callObject



9
10
11
# File 'app/models/spree/store_credit_prioritizer.rb', line 9

def call
  credits.order_by_priority
end