Class: RediSearch::Aggregate::Clauses::Load
- Inherits:
-
RediSearch::ApplicationClause
- Object
- RediSearch::ApplicationClause
- RediSearch::Aggregate::Clauses::Load
- Defined in:
- lib/redi_search/aggregate/clauses/load.rb
Instance Method Summary collapse
- #clause ⇒ Object
-
#initialize(fields:) ⇒ Load
constructor
A new instance of Load.
Methods inherited from RediSearch::ApplicationClause
#clause_order, clause_order, clause_term
Methods included from Validatable
Constructor Details
#initialize(fields:) ⇒ Load
Returns a new instance of Load.
10 11 12 |
# File 'lib/redi_search/aggregate/clauses/load.rb', line 10 def initialize(fields:) @fields = fields end |
Instance Method Details
#clause ⇒ Object
14 15 16 17 18 |
# File 'lib/redi_search/aggregate/clauses/load.rb', line 14 def clause validate! ["LOAD", fields.size, *fields] end |