Method: FeratelCheckApiClient::IdentificationUsage::EnumAttributeValidator#initialize
- Defined in:
- lib/feratel-check-api-client/models/identification_usage.rb
#initialize(datatype, allowable_values) ⇒ EnumAttributeValidator
Returns a new instance of EnumAttributeValidator.
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/feratel-check-api-client/models/identification_usage.rb', line 32 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 |