Class: ThePlaidApi::EmploymentVerificationStatus
- Inherits:
-
Object
- Object
- ThePlaidApi::EmploymentVerificationStatus
- Defined in:
- lib/the_plaid_api/models/employment_verification_status.rb
Overview
Current employment status.
Constant Summary collapse
- EMPLOYMENT_VERIFICATION_STATUS =
[ # TODO: Write general description for EMPLOYMENT_STATUS_ACTIVE EMPLOYMENT_STATUS_ACTIVE = 'EMPLOYMENT_STATUS_ACTIVE'.freeze, # TODO: Write general description for EMPLOYMENT_STATUS_INACTIVE EMPLOYMENT_STATUS_INACTIVE = 'EMPLOYMENT_STATUS_INACTIVE'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = EMPLOYMENT_STATUS_ACTIVE) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/the_plaid_api/models/employment_verification_status.rb', line 23 def self.from_value(value, default_value = EMPLOYMENT_STATUS_ACTIVE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'employment_status_active' then EMPLOYMENT_STATUS_ACTIVE when 'employment_status_inactive' then EMPLOYMENT_STATUS_INACTIVE else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/the_plaid_api/models/employment_verification_status.rb', line 17 def self.validate(value) return false if value.nil? EMPLOYMENT_VERIFICATION_STATUS.include?(value) end |