Class: OpenEHR::AQL::Model::ArchetypePredicate
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::ArchetypePredicate
- Defined in:
- lib/openehr/aql/model/predicate.rb
Overview
archetypePredicate : ARCHETYPE_HRID (SYM_COMMA (STRING | PARAMETER | TERM_CODE | AT_CODE | ID_CODE))? | PARAMETER ;
value is the optional SYM_COMMA suffix: a raw String (for
STRING/AT_CODE/ID_CODE) or a Parameter. The bare-PARAMETER
alternative (a whole predicate substituted at execution time,
e.g. "[$archetypeId]") isn't needed by any current example and is
deferred - see Parser#parse_predicate_primary.
Instance Attribute Summary collapse
-
#archetype_id ⇒ Object
readonly
Returns the value of attribute archetype_id.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(archetype_id:, value: nil) ⇒ ArchetypePredicate
constructor
A new instance of ArchetypePredicate.
Constructor Details
#initialize(archetype_id:, value: nil) ⇒ ArchetypePredicate
Returns a new instance of ArchetypePredicate.
27 28 29 30 31 |
# File 'lib/openehr/aql/model/predicate.rb', line 27 def initialize(archetype_id:, value: nil) @archetype_id = archetype_id @value = value freeze end |
Instance Attribute Details
#archetype_id ⇒ Object (readonly)
Returns the value of attribute archetype_id.
25 26 27 |
# File 'lib/openehr/aql/model/predicate.rb', line 25 def archetype_id @archetype_id end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
25 26 27 |
# File 'lib/openehr/aql/model/predicate.rb', line 25 def value @value end |