Class: OpenEHR::AM::Archetype::ConstraintModel::CObject
- Inherits:
-
ArchetypeConstraint
- Object
- ArchetypeConstraint
- OpenEHR::AM::Archetype::ConstraintModel::CObject
- Defined in:
- lib/openehr/am/archetype/constraint_model.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#node_id ⇒ Object
Returns the value of attribute node_id.
-
#occurrences ⇒ Object
Returns the value of attribute occurrences.
-
#rm_type_name ⇒ Object
Returns the value of attribute rm_type_name.
Attributes inherited from ArchetypeConstraint
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ CObject
constructor
A new instance of CObject.
- #path ⇒ Object
Methods inherited from ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = { }) ⇒ CObject
Returns a new instance of CObject.
85 86 87 88 89 90 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 85 def initialize(args = { }) super self.rm_type_name = args[:rm_type_name] self.node_id = args[:node_id] self.occurrences = args[:occurrences] end |
Instance Attribute Details
#node_id ⇒ Object
Returns the value of attribute node_id.
83 84 85 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 83 def node_id @node_id end |
#occurrences ⇒ Object
Returns the value of attribute occurrences.
83 84 85 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 83 def occurrences @occurrences end |
#rm_type_name ⇒ Object
Returns the value of attribute rm_type_name.
83 84 85 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 83 def rm_type_name @rm_type_name end |
Instance Method Details
#path ⇒ Object
113 114 115 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 113 def path @path || calculate_path end |