Class: OpenEHR::AQL::Model::Top
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::Top
- Defined in:
- lib/openehr/aql/model/order_by_and_limit.rb
Overview
top : TOP INTEGER direction=(FORWARD|BACKWARD)? ; (deprecated)
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
Instance Method Summary collapse
-
#initialize(count:, direction: nil) ⇒ Top
constructor
A new instance of Top.
Constructor Details
#initialize(count:, direction: nil) ⇒ Top
Returns a new instance of Top.
42 43 44 45 46 |
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 42 def initialize(count:, direction: nil) @count = count @direction = direction freeze end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
40 41 42 |
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 40 def count @count end |
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
40 41 42 |
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 40 def direction @direction end |