Class: Spree::ReturnsCalculator

Inherits:
Calculator show all
Defined in:
core/app/models/spree/returns_calculator.rb

Instance Method Summary collapse

Methods inherited from Calculator

#available?, calculators, description, #description, #to_s

Methods inherited from Base

display_includes, #initialize_preference_defaults, page, preference

Instance Method Details

#compute(_return_item) ⇒ Object

Raises:

  • (NotImplementedError)


5
6
7
# File 'core/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