Class: OpenEHR::AQL::Binding
- Inherits:
-
Struct
- Object
- Struct
- OpenEHR::AQL::Binding
- Defined in:
- lib/openehr/aql/engine/binding.rb
Overview
A single row-candidate produced while walking the FROM clause's containment tree: the Dataset::EHRRecord it came from (for "e/..." root paths) plus the RM objects bound to each FROM variable so far (e.g. => a_composition, "o" => an_observation).
Instance Attribute Summary collapse
-
#ehr_record ⇒ Object
Returns the value of attribute ehr_record.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
Instance Attribute Details
#ehr_record ⇒ Object
Returns the value of attribute ehr_record
7 8 9 |
# File 'lib/openehr/aql/engine/binding.rb', line 7 def ehr_record @ehr_record end |
#variables ⇒ Object
Returns the value of attribute variables
7 8 9 |
# File 'lib/openehr/aql/engine/binding.rb', line 7 def variables @variables end |
Instance Method Details
#[](name) ⇒ Object
8 9 10 |
# File 'lib/openehr/aql/engine/binding.rb', line 8 def [](name) variables.fetch(name) { raise SemanticError, "unbound variable: #{name.inspect}" } end |