Method: ElasticsearchQuery::Query#initialize
- Defined in:
- lib/elasticsearch_query/query.rb
#initialize(params) ⇒ Query
Returns a new instance of Query.
3 4 5 6 7 8 9 |
# File 'lib/elasticsearch_query/query.rb', line 3 def initialize( params ) if params.respond_to? :with_indifferent_access @params = params.with_indifferent_access else @params = params end end |