Class: OpenEHR::AM::Archetype::ConstraintModel::CMultipleAttribute

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

Instance Attribute Summary collapse

Attributes inherited from CAttribute

#children, #existence, #rm_attribute_name

Attributes inherited from ArchetypeConstraint

#parent, #path

Instance Method Summary collapse

Methods inherited from CAttribute

#has_children?, #path

Methods inherited from ArchetypeConstraint

#congruent?, #has_path?, #node_conforms_to?

Constructor Details

#initialize(args = { }) ⇒ CMultipleAttribute

Returns a new instance of CMultipleAttribute.



346
347
348
349
350
# File 'lib/openehr/am/archetype/constraint_model.rb', line 346

def initialize(args = { })
  super
  self.members = args[:members]
  self.cardinality = args[:cardinality]
end

Instance Attribute Details

#cardinalityObject

Returns the value of attribute cardinality.



344
345
346
# File 'lib/openehr/am/archetype/constraint_model.rb', line 344

def cardinality
  @cardinality
end

#membersObject

Returns the value of attribute members.



344
345
346
# File 'lib/openehr/am/archetype/constraint_model.rb', line 344

def members
  @members
end