Class: OpenEHR::AM::Archetype::ConstraintModel::CComplexObject
- Inherits:
-
CDefinedObject
- Object
- ArchetypeConstraint
- CObject
- CDefinedObject
- OpenEHR::AM::Archetype::ConstraintModel::CComplexObject
- Defined in:
- lib/openehr/am/archetype/constraint_model.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Attributes inherited from CDefinedObject
Attributes inherited from CObject
#node_id, #occurrences, #rm_type_name
Attributes inherited from ArchetypeConstraint
Instance Method Summary collapse
- #any_allowed? ⇒ Boolean
-
#initialize(args = { }) ⇒ CComplexObject
constructor
A new instance of CComplexObject.
Methods inherited from CDefinedObject
#default_value, #has_assumed_value?, #valid_value?
Methods inherited from CObject
Methods inherited from ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = { }) ⇒ CComplexObject
Returns a new instance of CComplexObject.
234 235 236 237 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 234 def initialize(args = { }) super self.attributes = args[:attributes] end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
232 233 234 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 232 def attributes @attributes end |
Instance Method Details
#any_allowed? ⇒ Boolean
247 248 249 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 247 def any_allowed? return (@attributes.nil? or @attributes.empty?) end |