Class: Elastic::Commands::BuildQueryFromParams
- Inherits:
-
Object
- Object
- Elastic::Commands::BuildQueryFromParams
- Defined in:
- lib/elastic/commands/build_query_from_params.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/elastic/commands/build_query_from_params.rb', line 3 def perform if block # TODO: builder mode, support nesting through first parameter else node = build_or_node(params) end node.try(:simplify) end |