Class: OpenEHR::AQL::Model::Comparison

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

Instance Method Summary collapse

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

#leftObject (readonly)

Returns the value of attribute left.



49
50
51
# File 'lib/openehr/aql/model/where_clause.rb', line 49

def left
  @left
end

#operatorObject (readonly)

Returns the value of attribute operator.



49
50
51
# File 'lib/openehr/aql/model/where_clause.rb', line 49

def operator
  @operator
end

#rightObject (readonly)

Returns the value of attribute right.



49
50
51
# File 'lib/openehr/aql/model/where_clause.rb', line 49

def right
  @right
end