Class: OpenEHR::AM::Archetype::ConstraintModel::CArchetypeRoot
- Inherits:
-
CComplexObject
- Object
- ArchetypeConstraint
- CObject
- CDefinedObject
- CComplexObject
- OpenEHR::AM::Archetype::ConstraintModel::CArchetypeRoot
- Defined in:
- lib/openehr/am/archetype/constraint_model.rb
Instance Attribute Summary collapse
-
#archetype_id ⇒ Object
Returns the value of attribute archetype_id.
-
#slot_node_id ⇒ Object
Returns the value of attribute slot_node_id.
Attributes inherited from CComplexObject
Attributes inherited from CDefinedObject
Attributes inherited from CObject
#node_id, #occurrences, #rm_type_name
Attributes inherited from ArchetypeConstraint
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ CArchetypeRoot
constructor
A new instance of CArchetypeRoot.
Methods inherited from CComplexObject
#any_allowed?, #has_attributes?
Methods inherited from CDefinedObject
#any_allowed?, #default_value, #has_assumed_value?, #valid_value?
Methods inherited from CObject
Methods inherited from ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = {}) ⇒ CArchetypeRoot
Returns a new instance of CArchetypeRoot.
277 278 279 280 281 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 277 def initialize(args = {}) super self.slot_node_id = args[:slot_node_id] self.archetype_id = args[:archetype_id] end |
Instance Attribute Details
#archetype_id ⇒ Object
Returns the value of attribute archetype_id.
275 276 277 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 275 def archetype_id @archetype_id end |
#slot_node_id ⇒ Object
Returns the value of attribute slot_node_id.
275 276 277 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 275 def slot_node_id @slot_node_id end |