lib/algolia/models/search/browse_params_object.rb in algolia-3.2.2 vs lib/algolia/models/search/browse_params_object.rb in algolia-3.2.3
- old
+ new
@@ -218,31 +218,9 @@
attr_accessor :re_ranking_apply_filter
# Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute.
attr_accessor :cursor
- 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
{
:query => :query,
:similar_query => :similarQuery,