Class: OpenEHR::AM::Archetype::ConstraintModel::CArchetypeRoot

Inherits:
CComplexObject show all
Defined in:
lib/openehr/am/archetype/constraint_model.rb

Instance Attribute Summary collapse

Attributes inherited from CComplexObject

#attributes

Attributes inherited from CDefinedObject

#assumed_value

Attributes inherited from CObject

#node_id, #occurrences, #rm_type_name

Attributes inherited from ArchetypeConstraint

#parent, #path

Instance Method Summary collapse

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

#path, #to_rm

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_idObject

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_idObject

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