class OpenEHR::AM::Archetype::ConstraintModel::CAttribute
Attributes
children[RW]
existence[R]
rm_attribute_name[R]
Public Class Methods
new(args = { })
click to toggle source
Calls superclass method
OpenEHR::AM::Archetype::ConstraintModel::ArchetypeConstraint::new
# 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
Public Instance Methods
existence=(existence)
click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 146 def existence=(existence) if !existence.nil? && (existence.lower < 0 || existence.upper > 1) raise ArgumentError, 'invalid existence' end @existence = existence end
rm_attribute_name=(rm_attribute_name)
click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 139 def rm_attribute_name=(rm_attribute_name) if rm_attribute_name.nil? or rm_attribute_name.empty? raise ArgumentError, 'invalid rm_attribute_name' end @rm_attribute_name = rm_attribute_name end