Class: Dbee::Query::Sorters

Inherits:
Object
  • Object
show all
Defined in:
lib/dbee/query/sorters.rb,
lib/dbee/query/sorters/base.rb,
lib/dbee/query/sorters/ascending.rb,
lib/dbee/query/sorters/descending.rb

Overview

Top-level class that allows for the making of sorters. For example, you can call this as:

  • Sorters.make(key_path: ‘id’, direction: :ascending)

  • Sorters.make(key_path: ‘id’)

  • Sorters.make(key_path: ‘id’, direction: :descending)

Defined Under Namespace

Classes: Ascending, Base, Descending