Sha256: e655816dbd22a0d5f862ed3381e9c6c4dd9a15dbd77d26f3a4d1e2df0508d27e
Contents?: true
Size: 413 Bytes
Versions: 15
Compression:
Stored size: 413 Bytes
Contents
class Calculator::FlatRate < Calculator preference :amount, :decimal, :default => 0 def self.description I18n.t("flat_rate_per_order") end def self.register super Coupon.register_calculator(self) ShippingMethod.register_calculator(self) ShippingRate.register_calculator(self) end def compute(object=nil) self.preferred_amount end end
Version data entries
15 entries across 15 versions & 2 rubygems