18F/micropurchase

View on GitHub
app/presenters/admin_auction_status_presenter/accepted_pending_payment_url.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AdminAuctionStatusPresenter::AcceptedPendingPaymentUrl < AdminAuctionStatusPresenter::Base
  def header
    I18n.t('statuses.admin_auction_status_presenter.accepted_pending_payment_url.header')
  end

  def body
    I18n.t(
      'statuses.admin_auction_status_presenter.accepted_pending_payment_url.body',
      winner_url: winner_url,
      delivery_url: auction.delivery_url
    )
  end

  def self.relevant?(status)
    status.accepted_pending_payment_url?
  end
end