Class: ThePlaidApi::CreditBankIncomeWarningType
- Inherits:
-
Object
- Object
- ThePlaidApi::CreditBankIncomeWarningType
- Defined in:
- lib/the_plaid_api/models/credit_bank_income_warning_type.rb
Overview
The warning type which will always be ‘BANK_INCOME_WARNING`.
Constant Summary collapse
- CREDIT_BANK_INCOME_WARNING_TYPE =
[ # TODO: Write general description for BANK_INCOME_WARNING BANK_INCOME_WARNING = 'BANK_INCOME_WARNING'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = BANK_INCOME_WARNING) ⇒ Object
20 21 22 23 24 |
# File 'lib/the_plaid_api/models/credit_bank_income_warning_type.rb', line 20 def self.from_value(value, default_value = BANK_INCOME_WARNING) 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_warning_type.rb', line 14 def self.validate(value) return false if value.nil? CREDIT_BANK_INCOME_WARNING_TYPE.include?(value) end |