Class: OpenEHR::AM::Archetype::ConstraintModel::CAttribute

Inherits:
ArchetypeConstraint show all
Defined in:
lib/open_ehr/am/archetype/constraint_model.rb

Direct Known Subclasses

CMultipleAttribute, CSingleAttribute

Instance Attribute Summary collapse

Attributes inherited from ArchetypeConstraint

#parent, #path

Instance Method Summary collapse

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

#childrenObject

Returns the value of attribute children.



130
131
132
# File 'lib/open_ehr/am/archetype/constraint_model.rb', line 130

def children
  @children
end

#existenceObject

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_nameObject

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