mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-22 06:39:39 +02:00
* Move accountable partials * Split accountables into separate view partials * Fix test * Add form to permitted partials * Fix failing system tests * Update new account modal views * New sync algorithm implementation * Update account system test assertions to match new behavior * Fix off by 1 date error * Revert new balance sync algorithm * Add missing account overviews
19 lines
408 B
Ruby
19 lines
408 B
Ruby
class CreditCard < ApplicationRecord
|
|
include Accountable
|
|
|
|
def available_credit_money
|
|
available_credit ? Money.new(available_credit, account.currency) : nil
|
|
end
|
|
|
|
def minimum_payment_money
|
|
minimum_payment ? Money.new(minimum_payment, account.currency) : nil
|
|
end
|
|
|
|
def annual_fee_money
|
|
annual_fee ? Money.new(annual_fee, account.currency) : nil
|
|
end
|
|
|
|
def color
|
|
"#F13636"
|
|
end
|
|
end
|