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
