lib/algolia/models/insights/viewed_object_ids.rb in algolia-3.2.2 vs lib/algolia/models/insights/viewed_object_ids.rb in algolia-3.2.3

- old
+ new

@@ -25,31 +25,9 @@ attr_accessor :authenticated_user_token # Timestamp of the event, measured in milliseconds since the Unix epoch. By default, the Insights API uses the time it receives an event as its timestamp. attr_accessor :timestamp - 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 { :event_name => :eventName, :event_type => :eventType,