Class: Redis::Commands::Search::SortbyField
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/redis/commands/modules/search/hybrid.rb |
Overview
A single field/direction pair for hybrid-search SORTBY.
Class Method Summary
- .new(field, asc: true) ⇒ SortbyField constructor
Instance Attribute Summary
- #args ⇒ Array<String> readonly
Constructor Details
.new(field, asc: true) ⇒ SortbyField
# File 'lib/redis/commands/modules/search/hybrid.rb', line 353
def initialize(field, asc: true) @args = [field, asc ? "ASC" : "DESC"] end
Instance Attribute Details
#args ⇒ Array<String> (readonly)
# File 'lib/redis/commands/modules/search/hybrid.rb', line 349
attr_reader :args