Sha256: 00fe02b04453b0536cf8992cddfd54c1700da640362e6a86b2c717a8becc8141
Contents?: true
Size: 366 Bytes
Versions: 23
Compression:
Stored size: 366 Bytes
Contents
class Calculator::FreeShipping < ::Calculator def self.description I18n.t("free_shipping") end def self.register super Promotion.register_calculator(self) end def compute(object) if object.is_a?(Array) return if object.empty? order = object.first.order else order = object end order.ship_total end end
Version data entries
23 entries across 23 versions & 7 rubygems