Class: Workarea::Payment::Status::Refunded

Inherits:
Object
  • Object
show all
Includes:
StatusCalculator::Status
Defined in:
app/models/workarea/payment/status.rb

Instance Method Summary collapse

Methods included from StatusCalculator::Status

#initialize

Instance Method Details

#in_status?Boolean

Returns:

  • (Boolean)


56
57
58
59
60
# File 'app/models/workarea/payment/status.rb', line 56

def in_status?
  order.tenders.all? do |tender|
    tender.refunded_amount == tender.amount
  end
end