Class: Redis::Commands::Search::Asc
- Inherits:
-
Object
- Object
- Redis::Commands::Search::Asc
- Defined in:
- lib/redis/commands/modules/search/aggregation.rb
Overview
Wraps a field name with an ascending (+ASC+) sort order for Redis::Commands::Search::AggregateRequest#sort_by.
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #order ⇒ String readonly
Instance Method Summary collapse
-
#initialize(name) ⇒ Asc
constructor
A new instance of Asc.
Constructor Details
#initialize(name) ⇒ Asc
Returns a new instance of Asc.
167 168 169 170 |
# File 'lib/redis/commands/modules/search/aggregation.rb', line 167 def initialize(name) @name = name @order = 'ASC' end |
Instance Attribute Details
#name ⇒ String (readonly)
164 165 166 |
# File 'lib/redis/commands/modules/search/aggregation.rb', line 164 def name @name end |
#order ⇒ String (readonly)
164 165 166 |
# File 'lib/redis/commands/modules/search/aggregation.rb', line 164 def order @order end |