Sha256: af3ef35766396abfb15ed59f2b9db0eb1d42885f03627596b384184da0d45f63

Contents?: true

Size: 247 Bytes

Versions: 9

Compression:

Stored size: 247 Bytes

Contents

module Spree
  class Calculator::FlatRate < Calculator
    preference :amount, :decimal, :default => 0

    def self.description
      I18n.t(:flat_rate_per_order)
    end

    def compute(object=nil)
      self.preferred_amount
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-1.0.4 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.3 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.2 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.1 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.0 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.0.rc4 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.0.rc3 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.0.rc2 app/models/spree/calculator/flat_rate.rb
spree_core-1.0.0.rc1 app/models/spree/calculator/flat_rate.rb