Class: OpenEHR::AQL::Model::AggregateFunctionCall
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::AggregateFunctionCall
- Defined in:
- lib/openehr/aql/model/function_call.rb
Overview
aggregateFunctionCall : name=COUNT SYM_LEFT_PAREN (DISTINCT? identifiedPath | SYM_ASTERISK) SYM_RIGHT_PAREN
| name=(MIN | MAX | SUM | AVG) SYM_LEFT_PAREN identifiedPath SYM_RIGHT_PAREN ;
path is nil only for the COUNT(*) form; distinct is only ever
true for COUNT (the grammar doesn't allow DISTINCT on MIN/MAX/SUM/AVG).
Instance Attribute Summary collapse
-
#distinct ⇒ Object
readonly
Returns the value of attribute distinct.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name:, path: nil, distinct: false) ⇒ AggregateFunctionCall
constructor
A new instance of AggregateFunctionCall.
Constructor Details
#initialize(name:, path: nil, distinct: false) ⇒ AggregateFunctionCall
Returns a new instance of AggregateFunctionCall.
11 12 13 14 15 16 |
# File 'lib/openehr/aql/model/function_call.rb', line 11 def initialize(name:, path: nil, distinct: false) @name = name @path = path @distinct = distinct freeze end |
Instance Attribute Details
#distinct ⇒ Object (readonly)
Returns the value of attribute distinct.
9 10 11 |
# File 'lib/openehr/aql/model/function_call.rb', line 9 def distinct @distinct end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/openehr/aql/model/function_call.rb', line 9 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/openehr/aql/model/function_call.rb', line 9 def path @path end |