Sha256: fa6256f067b86d342c0deabd00df85ddf3214ec491a45125ee1f9aa979591712
Contents?: true
Size: 266 Bytes
Versions: 2
Compression:
Stored size: 266 Bytes
Contents
module SuperGood module SolidusTaxjar class DiscountCalculator def initialize(line_item) @line_item = line_item end def discount -line_item.promo_total end private attr_reader :line_item end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
super_good-solidus_taxjar-0.18.2 | lib/super_good/solidus_taxjar/discount_calculator.rb |
super_good-solidus_taxjar-0.18.1 | lib/super_good/solidus_taxjar/discount_calculator.rb |