Method: TripletexRubyClient::ReportGroupAutoGroupOrderBy::EnumAttributeValidator#initialize
- Defined in:
- lib/tripletex_ruby_client/models/report_group_auto_group_order_by.rb
#initialize(datatype, allowable_values) ⇒ EnumAttributeValidator
Returns a new instance of EnumAttributeValidator.
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/tripletex_ruby_client/models/report_group_auto_group_order_by.rb', line 23 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 |