Module: Elasticquery::Es

Defined in:
lib/elasticquery/es.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



22
23
24
25
26
# File 'lib/elasticquery/es.rb', line 22

def self.extended(base)
  unless base.ancestors.include? Elasticsearch::Model
    raise EsNotSupported.new("Can't extend. It's not Elasticsearch::Model")
  end
end

Instance Method Details

#esObject



28
29
30
# File 'lib/elasticquery/es.rb', line 28

def es
  BaseChain.new(self)
end