Class: OpenEHR::AM::Archetype::ConstraintModel::ArchetypeSlot
- Inherits:
-
CReferenceObject
- Object
- ArchetypeConstraint
- CObject
- CReferenceObject
- OpenEHR::AM::Archetype::ConstraintModel::ArchetypeSlot
- Defined in:
- lib/openehr/am/archetype/constraint_model.rb
Instance Attribute Summary collapse
-
#excludes ⇒ Object
Returns the value of attribute excludes.
-
#includes ⇒ Object
Returns the value of attribute includes.
Attributes inherited from CObject
#node_id, #occurrences, #rm_type_name
Attributes inherited from ArchetypeConstraint
Instance Method Summary collapse
- #any_allowed? ⇒ Boolean
-
#initialize(args = { }) ⇒ ArchetypeSlot
constructor
A new instance of ArchetypeSlot.
Methods inherited from CObject
Methods inherited from ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = { }) ⇒ ArchetypeSlot
Returns a new instance of ArchetypeSlot.
289 290 291 292 293 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 289 def initialize(args = { }) super self.includes = args[:includes] self.excludes = args[:excludes] end |
Instance Attribute Details
#excludes ⇒ Object
Returns the value of attribute excludes.
287 288 289 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 287 def excludes @excludes end |
#includes ⇒ Object
Returns the value of attribute includes.
287 288 289 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 287 def includes @includes end |
Instance Method Details
#any_allowed? ⇒ Boolean
309 310 311 |
# File 'lib/openehr/am/archetype/constraint_model.rb', line 309 def any_allowed? return includes.nil? && excludes.nil? end |