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

Inherits:
ShippingCalculator show all
Defined in:
core/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

Instance Method Details

#compute_package(_package) ⇒ Object



12
13
14
# File 'core/app/models/spree/calculator/shipping/flat_rate.rb', line 12

def compute_package(_package)
  preferred_amount
end