Class: ThePlaidApi::FdxUpdateReason
- Inherits:
-
Object
- Object
- ThePlaidApi::FdxUpdateReason
- Defined in:
- lib/the_plaid_api/models/fdx_update_reason.rb
Overview
Reason for lifecycle event status change
Constant Summary collapse
- FDX_UPDATE_REASON =
[ # TODO: Write general description for BUSINESS_RULE BUSINESS_RULE = 'BUSINESS_RULE'.freeze, # TODO: Write general description for SECURITY_EVENT SECURITY_EVENT = 'SECURITY_EVENT'.freeze, # TODO: Write general description for USER_ACTION USER_ACTION = 'USER_ACTION'.freeze, # TODO: Write general description for OTHER OTHER = 'OTHER'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = BUSINESS_RULE) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/the_plaid_api/models/fdx_update_reason.rb', line 29 def self.from_value(value, default_value = BUSINESS_RULE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'business_rule' then BUSINESS_RULE when 'security_event' then SECURITY_EVENT when 'user_action' then USER_ACTION when 'other' then OTHER else default_value end end |
.validate(value) ⇒ Object
23 24 25 26 27 |
# File 'lib/the_plaid_api/models/fdx_update_reason.rb', line 23 def self.validate(value) return false if value.nil? FDX_UPDATE_REASON.include?(value) end |