Class: Enums::SortOrders

Inherits:
Object
  • Object
show all
Defined in:
lib/enums/sort_orders.rb

Overview

Enumerator class for sort ordering

Class Method Summary collapse

Class Method Details

.ascSortOrders

Returns SortOrders object corresponding to elasticsearch option of ‘asc’.

Returns:

  • (SortOrders)

    SortOrders object corresponding to elasticsearch option of ‘asc’



# File 'lib/enums/sort_orders.rb', line 18

.descSortOrders

Returns SortOrders object corresponding to elasticsearch option of ‘desc’.

Returns:

  • (SortOrders)

    SortOrders object corresponding to elasticsearch option of ‘desc’



# File 'lib/enums/sort_orders.rb', line 23