Class: ThePlaidApi::LinkDeliveryWebhookDeliveryStatus
- Inherits:
-
Object
- Object
- ThePlaidApi::LinkDeliveryWebhookDeliveryStatus
- Defined in:
- lib/the_plaid_api/models/link_delivery_webhook_delivery_status.rb
Overview
The status of the delivery of the Hosted Link to the user
Constant Summary collapse
- LINK_DELIVERY_WEBHOOK_DELIVERY_STATUS =
[ # TODO: Write general description for SUCCESS SUCCESS = 'SUCCESS'.freeze, # TODO: Write general description for FAILURE FAILURE = 'FAILURE'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = SUCCESS) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/the_plaid_api/models/link_delivery_webhook_delivery_status.rb', line 23 def self.from_value(value, default_value = SUCCESS) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'success' then SUCCESS when 'failure' then FAILURE else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/the_plaid_api/models/link_delivery_webhook_delivery_status.rb', line 17 def self.validate(value) return false if value.nil? LINK_DELIVERY_WEBHOOK_DELIVERY_STATUS.include?(value) end |