Class: Redis::Commands::Search::Desc
- Inherits:
-
Object
- Object
- Redis::Commands::Search::Desc
- Defined in:
- lib/redis/commands/modules/search/aggregation.rb
Overview
Wraps a field name with a descending (+DESC+) sort order for AggregateRequest#sort_by.
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #order ⇒ String readonly
Instance Method Summary collapse
-
#initialize(name) ⇒ Desc
constructor
A new instance of Desc.
Constructor Details
#initialize(name) ⇒ Desc
Returns a new instance of Desc.
180 181 182 183 |
# File 'lib/redis/commands/modules/search/aggregation.rb', line 180 def initialize(name) @name = name @order = 'DESC' end |
Instance Attribute Details
#name ⇒ String (readonly)
177 178 179 |
# File 'lib/redis/commands/modules/search/aggregation.rb', line 177 def name @name end |
#order ⇒ String (readonly)
177 178 179 |
# File 'lib/redis/commands/modules/search/aggregation.rb', line 177 def order @order end |