Class: OpenEHR::AQL::Model::Top

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

Overview

top : TOP INTEGER direction=(FORWARD|BACKWARD)? ; (deprecated)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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