Class: ThePlaidApi::CraCheckReportVerificationGetReportType
- Inherits:
-
Object
- Object
- ThePlaidApi::CraCheckReportVerificationGetReportType
- Defined in:
- lib/the_plaid_api/models/cra_check_report_verification_get_report_type.rb
Overview
Type of home lending report.
Constant Summary collapse
- CRA_CHECK_REPORT_VERIFICATION_GET_REPORT_TYPE =
[ # TODO: Write general description for VOA VOA = 'VOA'.freeze, # TODO: Write general description for EMPLOYMENT_REFRESH EMPLOYMENT_REFRESH = 'EMPLOYMENT_REFRESH'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = VOA) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/the_plaid_api/models/cra_check_report_verification_get_report_type.rb', line 23 def self.from_value(value, default_value = VOA) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'voa' then VOA when 'employment_refresh' then EMPLOYMENT_REFRESH else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/the_plaid_api/models/cra_check_report_verification_get_report_type.rb', line 17 def self.validate(value) return false if value.nil? CRA_CHECK_REPORT_VERIFICATION_GET_REPORT_TYPE.include?(value) end |