Class: Spree::ReturnsCalculator

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

Instance Method Summary collapse

Methods inherited from Calculator

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

Methods inherited from Base

belongs_to_required_by_default, page, spree_base_scopes

Methods included from Preferences::Preferable

#clear_preferences, #default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

Instance Method Details

#compute(_return_item) ⇒ Object

Raises:

  • (NotImplementedError)

3
4
5
# File 'app/models/spree/returns_calculator.rb', line 3

def compute(_return_item)
  raise NotImplementedError, "Please implement 'compute(return_item)' in your calculator: #{self.class.name}"
end