Class: OpenEHR::AQL::Model::OrderByItem

Inherits:
Object
  • Object
show all
Defined in:
lib/openehr/aql/model/order_by_and_limit.rb

Overview

orderByExpr : identifiedPath order=(DESCENDING|DESC|ASCENDING|ASC)? ; direction is always :asc or :desc - the grammar's four spellings (ASC/ASCENDING/DESC/DESCENDING) collapse to one of these two.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, direction: :asc) ⇒ OrderByItem

Returns a new instance of OrderByItem.



20
21
22
23
24
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 20

def initialize(path:, direction: :asc)
  @path = path
  @direction = direction
  freeze
end

Instance Attribute Details

#directionObject (readonly)

Returns the value of attribute direction.



18
19
20
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 18

def direction
  @direction
end

#pathObject (readonly)

Returns the value of attribute path.



18
19
20
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 18

def path
  @path
end