module ElasticQueue::Percolation
Public Instance Methods
in_queue?(model)
click to toggle source
# File lib/elastic_queue/percolation.rb, line 36 def in_queue?(model) search = self.class.dynamically_percolate(model, @query.percolator_body) search['matches'].length == 1 end
register_as_percolator_query(name)
click to toggle source
# File lib/elastic_queue/percolation.rb, line 41 def register_as_percolator_query(name) self.class.register_percolator_query(name, @query.percolator_body) end