blob: 747a9d06ea5acd259ffba91d8916a438ae3599ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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
|