Class: SolidusAfterpay::OrderPresenter
- Inherits:
-
Object
- Object
- SolidusAfterpay::OrderPresenter
- Defined in:
- app/presentes/solidus_afterpay/order_presenter.rb
Instance Method Summary collapse
-
#initialize(order:) ⇒ OrderPresenter
constructor
A new instance of OrderPresenter.
- #line_items_tax_amount ⇒ Object
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_amount ⇒ Object
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 |