Method: VoucherifySdk::LoyaltiesPointsExpirationExportCreateResponseBodyParametersFilters::EnumAttributeValidator#initialize
- Defined in:
- lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters_filters.rb
#initialize(datatype, allowable_values) ⇒ EnumAttributeValidator
Returns a new instance of EnumAttributeValidator.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/VoucherifySdk/models/loyalties_points_expiration_export_create_response_body_parameters_filters.rb', line 29 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 |