Class: OpenEHR::AQL::Model::OrderByItem
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::OrderByItem
- 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
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, direction: :asc) ⇒ OrderByItem
constructor
A new instance of OrderByItem.
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
#direction ⇒ Object (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 |
#path ⇒ Object (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 |