Class: Influxdb::Arel::Nodes::Ordering
- Defined in:
- lib/influxdb/arel/nodes/ordering.rb
Constant Summary collapse
- REVERSALS =
{ asc: :desc, desc: :asc }.freeze
Constants inherited from Node
Instance Attribute Summary
Attributes inherited from Unary
Instance Method Summary collapse
Methods inherited from Unary
#eql?, #hash, #initialize, #initialize_copy
Methods inherited from Node
Methods included from Extensions::BooleanPredications
Constructor Details
This class inherits a constructor from Influxdb::Arel::Nodes::Unary
Instance Method Details
#invert ⇒ Object
9 10 11 |
# File 'lib/influxdb/arel/nodes/ordering.rb', line 9 def invert Ordering.new(REVERSALS[direction.to_sym]) end |