Class: OpenEHR::AM::Archetype::ConstraintModel::Primitive::CString

Inherits:
CPrimitive
  • Object
show all
Defined in:
lib/open_ehr/am/archetype/constraint_model/primitive.rb

Instance Attribute Summary collapse

Attributes inherited from CPrimitive

#assumed_value, #default_value, #type

Instance Method Summary collapse

Methods inherited from CPrimitive

#has_assumed_value?

Constructor Details

#initialize(args = { }) ⇒ CString

Returns a new instance of CString.



81
82
83
84
85
86
87
# File 'lib/open_ehr/am/archetype/constraint_model/primitive.rb', line 81

def initialize(args = { })
  args[:type] = 'String'
  super
  consistency(args[:pattern], args[:list])
  @pattern = args[:pattern]
  @list = args[:list]
end

Instance Attribute Details

#listObject

Returns the value of attribute list.



79
80
81
# File 'lib/open_ehr/am/archetype/constraint_model/primitive.rb', line 79

def list
  @list
end

#patternObject

Returns the value of attribute pattern.



79
80
81
# File 'lib/open_ehr/am/archetype/constraint_model/primitive.rb', line 79

def pattern
  @pattern
end