Class: ThePlaidApi::CreditBankIncomeAccountType
- Inherits:
-
Object
- Object
- ThePlaidApi::CreditBankIncomeAccountType
- Defined in:
- lib/the_plaid_api/models/credit_bank_income_account_type.rb
Overview
The account type. This will always be ‘depository`.
Constant Summary collapse
- CREDIT_BANK_INCOME_ACCOUNT_TYPE =
[ # TODO: Write general description for DEPOSITORY DEPOSITORY = 'depository'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = DEPOSITORY) ⇒ Object
20 21 22 23 24 |
# File 'lib/the_plaid_api/models/credit_bank_income_account_type.rb', line 20 def self.from_value(value, default_value = DEPOSITORY) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/the_plaid_api/models/credit_bank_income_account_type.rb', line 14 def self.validate(value) return false if value.nil? CREDIT_BANK_INCOME_ACCOUNT_TYPE.include?(value) end |