Class: ThePlaidApi::Purpose
- Inherits:
-
Object
- Object
- ThePlaidApi::Purpose
- Defined in:
- lib/the_plaid_api/models/purpose.rb
Overview
Specifies the purpose of the uploaded file. ‘“DUE_DILIGENCE”` - The transfer due diligence document of the originator.
Constant Summary collapse
- PURPOSE =
[ # TODO: Write general description for DUE_DILIGENCE DUE_DILIGENCE = 'DUE_DILIGENCE'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = DUE_DILIGENCE) ⇒ Object
21 22 23 24 25 |
# File 'lib/the_plaid_api/models/purpose.rb', line 21 def self.from_value(value, default_value = DUE_DILIGENCE) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
15 16 17 18 19 |
# File 'lib/the_plaid_api/models/purpose.rb', line 15 def self.validate(value) return false if value.nil? PURPOSE.include?(value) end |