blob: e5ae91c7ee05684d1c276fd89b10c7b8d5d19c09 (
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
|