Class: ThePlaidApi::NetworkInsightsVersion
- Inherits:
-
Object
- Object
- ThePlaidApi::NetworkInsightsVersion
- Defined in:
- lib/the_plaid_api/models/network_insights_version.rb
Overview
The version of Network Insights. Required if using Network Insights.
Constant Summary collapse
- NETWORK_INSIGHTS_VERSION =
[ # TODO: Write general description for NI1 NI1 = 'NI1'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = NI1) ⇒ Object
20 21 22 23 24 |
# File 'lib/the_plaid_api/models/network_insights_version.rb', line 20 def self.from_value(value, default_value = NI1) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/the_plaid_api/models/network_insights_version.rb', line 14 def self.validate(value) return false if value.nil? NETWORK_INSIGHTS_VERSION.include?(value) end |