Class: OpenEHR::AQL::Model::StandardPredicate
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::StandardPredicate
- Defined in:
- lib/openehr/aql/model/predicate.rb
Overview
standardPredicate : objectPath COMPARISON_OPERATOR pathPredicateOperand ; (nodePredicate's 4th alternative has this identical shape - see Parser#parse_standard_predicate's comment.)
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, operator:, operand:) ⇒ StandardPredicate
constructor
A new instance of StandardPredicate.
Constructor Details
#initialize(path:, operator:, operand:) ⇒ StandardPredicate
Returns a new instance of StandardPredicate.
10 11 12 13 14 15 |
# File 'lib/openehr/aql/model/predicate.rb', line 10 def initialize(path:, operator:, operand:) @path = path @operator = operator @operand = operand freeze end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
8 9 10 |
# File 'lib/openehr/aql/model/predicate.rb', line 8 def operand @operand end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
8 9 10 |
# File 'lib/openehr/aql/model/predicate.rb', line 8 def operator @operator end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'lib/openehr/aql/model/predicate.rb', line 8 def path @path end |