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