Class: OpenEHR::AQL::Model::LimitClause

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

Overview

limitClause : LIMIT limit=INTEGER (OFFSET offset=INTEGER)? ;

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#limitObject (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

#offsetObject (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