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?

Methods inherited from Spree::Calculator

#available?, #compute, description, #description, #to_s

Methods inherited from Base

display_includes

Methods included from Spree::Core::Permalinks

#generate_permalink, #save_permalink

Instance Method Details

#compute_package(_package) ⇒ Object



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

def compute_package(_package)
  preferred_amount
end