Class: OpenEHR::AM::Archetype::ConstraintModel::CAttribute
- Inherits:
-
ArchetypeConstraint
- Object
- ArchetypeConstraint
- OpenEHR::AM::Archetype::ConstraintModel::CAttribute
- Defined in:
- lib/open_ehr/am/archetype/constraint_model.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#existence ⇒ Object
Returns the value of attribute existence.
-
#rm_attribute_name ⇒ Object
Returns the value of attribute rm_attribute_name.
Attributes inherited from ArchetypeConstraint
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ CAttribute
constructor
A new instance of CAttribute.
Methods inherited from ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = { }) ⇒ CAttribute
Returns a new instance of CAttribute.
132 133 134 135 136 137 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 132 def initialize(args = { }) super(args) self.rm_attribute_name = args[:rm_attribute_name] self.existence = args[:existence] self.children = args[:children] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
130 131 132 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 130 def children @children end |
#existence ⇒ Object
Returns the value of attribute existence.
129 130 131 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 129 def existence @existence end |
#rm_attribute_name ⇒ Object
Returns the value of attribute rm_attribute_name.
129 130 131 |
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 129 def rm_attribute_name @rm_attribute_name end |