class OpenEHR::AM::Archetype::ConstraintModel::CObject
Attributes
node_id[R]
occurrences[R]
rm_type_name[R]
Public Class Methods
create(args = { }) { |c_object| ... }
click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 119 def self.create(args = { }, &block) c_object = new(args) if block_given? yield c_object end return c_object end
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 91 def initialize(args = { }) super self.rm_type_name = args[:rm_type_name] self.node_id = args[:node_id] self.occurrences = args[:occurrences] end
Public Instance Methods
node_id=(node_id)
click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 105 def node_id=(node_id) if !node_id.nil? && node_id.empty? raise ArgumentError, 'invalid node_id' end @node_id = node_id end
occurrences=(occurrences)
click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 112 def occurrences=(occurrences) if occurrences.nil? raise ArgumentError, 'invaild occurrences' end @occurrences = occurrences end
rm_type_name=(rm_type_name)
click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 98 def rm_type_name=(rm_type_name) if rm_type_name.nil? || rm_type_name.empty? raise ArgumentError, 'invalid rm_type_name' end @rm_type_name = rm_type_name end