Class: OpenEHR::AQL::Model::StandardPredicate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#operandObject (readonly)

Returns the value of attribute operand.



8
9
10
# File 'lib/openehr/aql/model/predicate.rb', line 8

def operand
  @operand
end

#operatorObject (readonly)

Returns the value of attribute operator.



8
9
10
# File 'lib/openehr/aql/model/predicate.rb', line 8

def operator
  @operator
end

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/openehr/aql/model/predicate.rb', line 8

def path
  @path
end