Class: Spree::ReturnsCalculator
- Inherits:
-
Calculator
- Object
- ActiveRecord::Base
- Base
- Calculator
- Spree::ReturnsCalculator
- Defined in:
- app/models/spree/returns_calculator.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Calculator
#available?, #description, description, #to_s
Methods inherited from Base
Methods included from Core::Permalinks
#generate_permalink, #save_permalink
Instance Method Details
#compute(_return_item) ⇒ Object
5 6 7 |
# File 'app/models/spree/returns_calculator.rb', line 5 def compute(_return_item) raise NotImplementedError, "Please implement 'compute(return_item)' in your calculator: #{self.class.name}" end |