Class: OpenEHR::AM::Archetype::ConstraintModel::CMultipleAttribute
- Inherits:
-
CAttribute
- Object
- ArchetypeConstraint
- CAttribute
- OpenEHR::AM::Archetype::ConstraintModel::CMultipleAttribute
- Defined in:
- lib/open_ehr/am/archetype/constraint_model.rb
Instance Attribute Summary collapse
-
#cardinality ⇒ Object
Returns the value of attribute cardinality.
-
#members ⇒ Object
Returns the value of attribute members.
Attributes inherited from CAttribute
#children, #existence, #rm_attribute_name
Attributes inherited from ArchetypeConstraint
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ CMultipleAttribute
constructor
A new instance of CMultipleAttribute.
Methods inherited from ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = { }) ⇒ CMultipleAttribute
Returns a new instance of CMultipleAttribute.
318 319 320 321 322 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 318 def initialize(args = { }) super self.members = args[:members] self.cardinality = args[:cardinality] end |
Instance Attribute Details
#cardinality ⇒ Object
Returns the value of attribute cardinality.
316 317 318 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 316 def cardinality @cardinality end |
#members ⇒ Object
Returns the value of attribute members.
316 317 318 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 316 def members @members end |