Method: Algolia::Search::AutomaticFacetFilter#==

Defined in:
lib/algolia/models/search/automatic_facet_filter.rb

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



86
87
88
89
90
91
92
# File 'lib/algolia/models/search/automatic_facet_filter.rb', line 86

def ==(other)
  return true if self.equal?(other)
  self.class == other.class &&
    facet == other.facet &&
    score == other.score &&
    disjunctive == other.disjunctive
end