Class: OpenEHR::AM::Archetype::ConstraintModel::CSingleAttribute
- Inherits:
-
CAttribute
- Object
- ArchetypeConstraint
- CAttribute
- OpenEHR::AM::Archetype::ConstraintModel::CSingleAttribute
- Defined in:
- lib/open_ehr/am/archetype/constraint_model.rb
Instance Attribute Summary collapse
-
#alternatives ⇒ Object
Returns the value of attribute alternatives.
Attributes inherited from CAttribute
#children, #existence, #rm_attribute_name
Attributes inherited from ArchetypeConstraint
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ CSingleAttribute
constructor
A new instance of CSingleAttribute.
Methods inherited from ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = { }) ⇒ CSingleAttribute
Returns a new instance of CSingleAttribute.
305 306 307 308 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 305 def initialize(args = { }) super self.alternatives = args[:alternatives] end |
Instance Attribute Details
#alternatives ⇒ Object
Returns the value of attribute alternatives.
303 304 305 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 303 def alternatives @alternatives end |