Class: CafeCar::Model::SortKey

Inherits:
Data
  • Object
show all
Defined in:
lib/cafe_car/model.rb

Overview

A validated sort term: an Arel/hash order argument plus the association to left_outer_joins (nil for a plain column) so the qualified ORDER BY resolves.

Instance Attribute Summary collapse

Instance Attribute Details

#joinObject (readonly)

Returns the value of attribute join

Returns:

  • (Object)

    the current value of join



9
10
11
# File 'lib/cafe_car/model.rb', line 9

def join
  @join
end

#orderObject (readonly)

Returns the value of attribute order

Returns:

  • (Object)

    the current value of order



9
10
11
# File 'lib/cafe_car/model.rb', line 9

def order
  @order
end