2024-06-20 07:26:25 -04:00
|
|
|
class Depository < ApplicationRecord
|
|
|
|
include Accountable
|
2024-10-18 14:37:42 -04:00
|
|
|
|
2025-04-22 13:10:50 -05:00
|
|
|
SUBTYPES = {
|
|
|
|
"checking" => { short: "Checking", long: "Checking" },
|
2025-05-23 18:58:22 -04:00
|
|
|
"savings" => { short: "Savings", long: "Savings" },
|
|
|
|
"hsa" => { short: "HSA", long: "Health Savings Account" },
|
|
|
|
"cd" => { short: "CD", long: "Certificate of Deposit" },
|
|
|
|
"money_market" => { short: "MM", long: "Money Market" }
|
2025-04-22 13:10:50 -05:00
|
|
|
}.freeze
|
2024-11-04 20:27:31 -05:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
class << self
|
|
|
|
def display_name
|
|
|
|
"Cash"
|
|
|
|
end
|
|
|
|
|
|
|
|
def color
|
|
|
|
"#875BF7"
|
|
|
|
end
|
|
|
|
|
|
|
|
def classification
|
|
|
|
"asset"
|
|
|
|
end
|
2024-11-04 20:27:31 -05:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
def icon
|
|
|
|
"landmark"
|
|
|
|
end
|
2024-11-04 20:27:31 -05:00
|
|
|
end
|
2024-06-20 07:26:25 -04:00
|
|
|
end
|