Method: TreezorClient::InlineResponse2005Businessinformations::EnumAttributeValidator#initialize
- Defined in:
- lib/treezor_client/models/inline_response_200_5_businessinformations.rb
permalink #initialize(datatype, allowable_values) ⇒ EnumAttributeValidator
Returns a new instance of EnumAttributeValidator.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/treezor_client/models/inline_response_200_5_businessinformations.rb', line 77 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 |