Sha256: 493cb412852b6fa0d8f0ff3c183aa0465241bde68517a96ae2ea0f8b649b1c13
Contents?: true
Size: 280 Bytes
Versions: 2
Compression:
Stored size: 280 Bytes
Contents
# frozen_string_literal: true module SolidusAfterpay class OrderPresenter def initialize(order:) @order = order end def line_items_tax_amount order.line_item_adjustments.tax.eligible.sum(&:amount) end private attr_reader :order end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_afterpay-0.3.0 | app/presentes/solidus_afterpay/order_presenter.rb |
solidus_afterpay-0.2.0 | app/presentes/solidus_afterpay/order_presenter.rb |