Class: JayAPI::Elasticsearch::QueryBuilder::QueryClauses::QueryClause

Inherits:
Object
  • Object
show all
Defined in:
lib/jay_api/elasticsearch/query_builder/query_clauses/query_clause.rb

Overview

This is the base class for all the query types that Elasticsearch can handle. See the subclasses for info on each of the query types.

Instance Method Summary collapse

Instance Method Details

#to_hObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/jay_api/elasticsearch/query_builder/query_clauses/query_clause.rb', line 10

def to_h
  raise NotImplementedError, "Please implement the #to_h method in the #{self.class} class"
end