lib/algolia/models/ingestion/destination_create.rb in algolia-3.2.2 vs lib/algolia/models/ingestion/destination_create.rb in algolia-3.2.3
- old
+ new
@@ -17,31 +17,9 @@
# Universally unique identifier (UUID) of an authentication resource.
attr_accessor :authentication_id
attr_accessor :transformation_ids
- class EnumAttributeValidator
- attr_reader :datatype
- attr_reader :allowable_values
-
- 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
-
- def valid?(value)
- !value || allowable_values.include?(value)
- end
- end
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:type => :type,
:name => :name,