Class: OpenEHR::AM::Archetype::ConstraintModel::CSingleAttribute

Inherits:
CAttribute show all
Defined in:
lib/openehr/am/archetype/constraint_model.rb

Instance Attribute Summary collapse

Attributes inherited from CAttribute

#children, #existence, #rm_attribute_name

Attributes inherited from ArchetypeConstraint

#parent, #path

Instance Method Summary collapse

Methods inherited from CAttribute

#has_children?, #path

Methods inherited from ArchetypeConstraint

#congruent?, #has_path?, #node_conforms_to?

Constructor Details

#initialize(args = { }) ⇒ CSingleAttribute

Returns a new instance of CSingleAttribute.



361
362
363
364
# File 'lib/openehr/am/archetype/constraint_model.rb', line 361

def initialize(args = { })
  super
  self.alternatives = args[:alternatives]
end

Instance Attribute Details

#alternativesObject

Returns the value of attribute alternatives.



359
360
361
# File 'lib/openehr/am/archetype/constraint_model.rb', line 359

def alternatives
  @alternatives
end