Class: SolidusAfterpay::OrderPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presentes/solidus_afterpay/order_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(order:) ⇒ OrderPresenter

Returns a new instance of OrderPresenter.



5
6
7
# File 'app/presentes/solidus_afterpay/order_presenter.rb', line 5

def initialize(order:)
  @order = order
end

Instance Method Details

#line_items_tax_amountObject



9
10
11
# File 'app/presentes/solidus_afterpay/order_presenter.rb', line 9

def line_items_tax_amount
  order.line_item_adjustments.tax.eligible.sum(&:amount)
end