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?, #default_value, #find_violation, #has_attributes?, #valid_value?

Methods inherited from CDefinedObject

#any_allowed?, #default_value, #has_assumed_value?, #valid_value?

Methods inherited from CObject

#node_conforms_to?, #path, #to_rm

Methods inherited from ArchetypeConstraint

#congruent?, #has_path?, #node_conforms_to?

Constructor Details

#initialize(args = {}) ⇒ CArchetypeRoot

Returns a new instance of CArchetypeRoot.



491
492
493
494
495
# File 'lib/openehr/am/archetype/constraint_model.rb', line 491

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.



489
490
491
# File 'lib/openehr/am/archetype/constraint_model.rb', line 489

def archetype_id
  @archetype_id
end

#slot_node_idObject

Returns the value of attribute slot_node_id.



489
490
491
# File 'lib/openehr/am/archetype/constraint_model.rb', line 489

def slot_node_id
  @slot_node_id
end