Class: Spree::ReturnsCalculator Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from Calculator

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

Methods inherited from Base

display_includes, #initialize_preference_defaults, page, preference

Methods included from Preferences::Preferable

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

Instance Method Details

#compute(_return_item) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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