lib/algolia/models/search/consequence_hide.rb in algolia-3.11.0 vs lib/algolia/models/search/consequence_hide.rb in algolia-3.12.0

- old
+ new

@@ -1,28 +1,30 @@ +# frozen_string_literal: true + # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. require "date" require "time" module Algolia module Search # Object ID of the record to hide. class ConsequenceHide # Unique record identifier. - attr_accessor :object_id + attr_accessor :algolia_object_id # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :object_id => :objectID + :algolia_object_id => :objectID } end # Attribute type mapping. def self.types_mapping { - :object_id => :"String" + :algolia_object_id => :"String" } end # List of attributes with nullable: true def self.openapi_nullable @@ -52,23 +54,23 @@ end h[k.to_sym] = v } - if attributes.key?(:object_id) - self.object_id = attributes[:object_id] + if attributes.key?(:algolia_object_id) + self.algolia_object_id = attributes[:algolia_object_id] else - self.object_id = nil + self.algolia_object_id = nil end end # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(other) return true if self.equal?(other) self.class == other.class && - object_id == other.object_id + algolia_object_id == other.algolia_object_id end # @see the `==` method # @param [Object] Object to be compared def eql?(other) @@ -76,10 +78,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [object_id].hash + [algolia_object_id].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself