Class: OpenEHR::AQL::Model::Comparison
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::Comparison
- Defined in:
- lib/openehr/aql/model/where_clause.rb
Overview
identifiedExpr : identifiedPath COMPARISON_OPERATOR terminal | functionCall COMPARISON_OPERATOR terminal ; The functionCall-on-the-left alternative is added by M8.
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left:, operator:, right:) ⇒ Comparison
constructor
A new instance of Comparison.
Constructor Details
#initialize(left:, operator:, right:) ⇒ Comparison
Returns a new instance of Comparison.
51 52 53 54 55 56 |
# File 'lib/openehr/aql/model/where_clause.rb', line 51 def initialize(left:, operator:, right:) @left = left @operator = operator @right = right freeze end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
49 50 51 |
# File 'lib/openehr/aql/model/where_clause.rb', line 49 def left @left end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
49 50 51 |
# File 'lib/openehr/aql/model/where_clause.rb', line 49 def operator @operator end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
49 50 51 |
# File 'lib/openehr/aql/model/where_clause.rb', line 49 def right @right end |