class OpenEHR::AM::Archetype::ConstraintModel::CComplexObject

Attributes

attributes[RW]

Public Class Methods

create(args = { }) { |c_complex_object| ... } click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 204
def self.create(args = { }, &block)
  c_complex_object = new(args)
  if block_given?
    yield c_complex_object
  end
  return c_complex_object
end
new(args = { }) click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 195
def initialize(args = { })
  super
  self.attributes = args[:attributes]
end

Public Instance Methods

any_allowed?() click to toggle source
# File lib/open_ehr/am/archetype/constraint_model.rb, line 200
def any_allowed?
  return (@attributes.nil? or @attributes.empty?)
end