Class: RediSearch::Aggregate::Clauses::Apply
- Inherits:
-
RediSearch::ApplicationClause
- Object
- RediSearch::ApplicationClause
- RediSearch::Aggregate::Clauses::Apply
- Defined in:
- lib/redi_search/aggregate/clauses/apply.rb
Instance Method Summary collapse
- #clause ⇒ Object
-
#initialize(expression:, as:) ⇒ Apply
constructor
A new instance of Apply.
Methods inherited from RediSearch::ApplicationClause
#clause_order, clause_order, clause_term
Methods included from Validatable
Constructor Details
#initialize(expression:, as:) ⇒ Apply
Returns a new instance of Apply.
11 12 13 14 |
# File 'lib/redi_search/aggregate/clauses/apply.rb', line 11 def initialize(expression:, as:) @expression = expression @as = as end |
Instance Method Details
#clause ⇒ Object
16 17 18 19 20 |
# File 'lib/redi_search/aggregate/clauses/apply.rb', line 16 def clause validate! ["APPLY", expression, "AS", as] end |