Class: OpenEHR::AM::Archetype::ConstraintModel::CDefinedObject
- Inherits:
-
CObject
show all
- Defined in:
- lib/openehr/am/archetype/constraint_model.rb
Instance Attribute Summary collapse
Attributes inherited from CObject
#node_id, #occurrences, #rm_type_name
#parent, #path
Instance Method Summary
collapse
Methods inherited from CObject
#path, #to_rm
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
193
194
195
196
|
# File 'lib/openehr/am/archetype/constraint_model.rb', line 193
def initialize(args = { })
super
self.assumed_value = args[:assumed_value]
end
|
Instance Attribute Details
#assumed_value ⇒ Object
Returns the value of attribute assumed_value.
191
192
193
|
# File 'lib/openehr/am/archetype/constraint_model.rb', line 191
def assumed_value
@assumed_value
end
|
Instance Method Details
#any_allowed? ⇒ Boolean
210
211
212
|
# File 'lib/openehr/am/archetype/constraint_model.rb', line 210
def any_allowed?
raise NotImplementedError, 'subclass should implement this method'
end
|
#default_value ⇒ Object
202
203
204
|
# File 'lib/openehr/am/archetype/constraint_model.rb', line 202
def default_value
raise NotImplementedError, 'subclass should implement this method'
end
|
#has_assumed_value? ⇒ Boolean
198
199
200
|
# File 'lib/openehr/am/archetype/constraint_model.rb', line 198
def has_assumed_value?
return !@assumed_value.nil?
end
|
#valid_value?(value) ⇒ Boolean
206
207
208
|
# File 'lib/openehr/am/archetype/constraint_model.rb', line 206
def valid_value?(value)
raise NotImplementedError, 'subclass should implement this method'
end
|