Class: Invoice
- Inherits:
-
MLS::Model
- Object
- ActiveRecord::Base
- MLS::Model
- Invoice
- Defined in:
- lib/mls/models/invoice.rb
Instance Method Summary collapse
Instance Method Details
#amount ⇒ Object
6 7 8 |
# File 'lib/mls/models/invoice.rb', line 6 def amount read_attribute(:amount) / 100.0 if read_attribute(:amount) end |
#status ⇒ Object
10 11 12 13 14 |
# File 'lib/mls/models/invoice.rb', line 10 def status return "refunded" if refunded_at return "paid" if cleared_at return "pending" end |