Class: OpenEHR::AQL::Model::LimitClause
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::LimitClause
- Defined in:
- lib/openehr/aql/model/order_by_and_limit.rb
Overview
limitClause : LIMIT limit=INTEGER (OFFSET offset=INTEGER)? ;
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(limit:, offset: 0) ⇒ LimitClause
constructor
A new instance of LimitClause.
Constructor Details
#initialize(limit:, offset: 0) ⇒ LimitClause
Returns a new instance of LimitClause.
31 32 33 34 35 |
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 31 def initialize(limit:, offset: 0) @limit = limit @offset = offset freeze end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
29 30 31 |
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 29 def limit @limit end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
29 30 31 |
# File 'lib/openehr/aql/model/order_by_and_limit.rb', line 29 def offset @offset end |