Class: OpenEHR::AM::Archetype::ConstraintModel::Primitive::CString
- Inherits:
-
CPrimitive
- Object
- CPrimitive
- OpenEHR::AM::Archetype::ConstraintModel::Primitive::CString
- Defined in:
- lib/open_ehr/am/archetype/constraint_model/primitive.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Attributes inherited from CPrimitive
#assumed_value, #default_value, #type
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ CString
constructor
A new instance of CString.
Methods inherited from CPrimitive
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
#list ⇒ Object
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 |
#pattern ⇒ Object
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 |