class Plaid::CraCheckReportCashflowInsightsGetOptions::EnumAttributeValidator
Attributes
Public Class Methods
Source
# File lib/plaid/models/cra_check_report_cashflow_insights_get_options.rb, line 27 def initialize(datatype, allowable_values) @allowable_values = allowable_values.map do |value| case datatype.to_s when /Integer/i value.to_i when /Float/i value.to_f else value end end end
Public Instance Methods
Source
# File lib/plaid/models/cra_check_report_cashflow_insights_get_options.rb, line 40 def valid?(value) !value || allowable_values.include?(value) end