Class: OpenEHR::AQL::Model::NodePredicate
- Inherits:
-
Object
- Object
- OpenEHR::AQL::Model::NodePredicate
- Defined in:
- lib/openehr/aql/model/predicate.rb
Overview
nodePredicate : (ID_CODE | AT_CODE) (SYM_COMMA (STRING | PARAMETER | TERM_CODE | AT_CODE | ID_CODE))? | ... ;
value is the optional SYM_COMMA suffix, same shape as
ArchetypePredicate#value.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(code:, value: nil) ⇒ NodePredicate
constructor
A new instance of NodePredicate.
Constructor Details
#initialize(code:, value: nil) ⇒ NodePredicate
Returns a new instance of NodePredicate.
40 41 42 43 44 |
# File 'lib/openehr/aql/model/predicate.rb', line 40 def initialize(code:, value: nil) @code = code @value = value freeze end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
38 39 40 |
# File 'lib/openehr/aql/model/predicate.rb', line 38 def code @code end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
38 39 40 |
# File 'lib/openehr/aql/model/predicate.rb', line 38 def value @value end |