Class: Searchkick::Where

Inherits:
Object
  • Object
show all
Defined in:
lib/searchkick/where.rb

Instance Method Summary collapse

Constructor Details

#initialize(relation) ⇒ Where

Returns a new instance of Where.



3
4
5
# File 'lib/searchkick/where.rb', line 3

def initialize(relation)
  @relation = relation
end

Instance Method Details

#not(value) ⇒ Object



7
8
9
# File 'lib/searchkick/where.rb', line 7

def not(value)
  @relation.where(_not: value)
end