Class: ThePlaidApi::VerificationStatus1
- Inherits:
-
Object
- Object
- ThePlaidApi::VerificationStatus1
- Defined in:
- lib/the_plaid_api/models/verification_status1.rb
Overview
The verification status to set the account to.
Constant Summary collapse
- VERIFICATION_STATUS1 =
[ # TODO: Write general description for AUTOMATICALLY_VERIFIED AUTOMATICALLY_VERIFIED = 'automatically_verified'.freeze, # TODO: Write general description for VERIFICATION_EXPIRED VERIFICATION_EXPIRED = 'verification_expired'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = AUTOMATICALLY_VERIFIED) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/the_plaid_api/models/verification_status1.rb', line 23 def self.from_value(value, default_value = AUTOMATICALLY_VERIFIED) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'automatically_verified' then AUTOMATICALLY_VERIFIED when 'verification_expired' then VERIFICATION_EXPIRED else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/the_plaid_api/models/verification_status1.rb', line 17 def self.validate(value) return false if value.nil? VERIFICATION_STATUS1.include?(value) end |