Class: Spree::Calculator::Shipping::FlatRate

Inherits:
ShippingCalculator show all
Defined in:
app/models/spree/calculator/shipping/flat_rate.rb

Instance Method Summary collapse

Methods inherited from ShippingCalculator

#available?, #compute_shipment

Methods inherited from Spree::Calculator

#available?, calculators, #compute, description, #description, #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_package(_package) ⇒ Object



10
11
12
# File 'app/models/spree/calculator/shipping/flat_rate.rb', line 10

def compute_package(_package)
  preferred_amount
end