Class: OpenEHR::AM::Archetype::ConstraintModel::Primitive::CInteger
- Inherits:
-
CPrimitive
- Object
- CPrimitive
- OpenEHR::AM::Archetype::ConstraintModel::Primitive::CInteger
- Defined in:
- lib/openehr/am/archetype/constraint_model/primitive.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
-
#range ⇒ Object
Returns the value of attribute range.
Attributes inherited from CPrimitive
#assumed_value, #default_value, #type
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ CInteger
constructor
A new instance of CInteger.
Methods inherited from CPrimitive
Constructor Details
#initialize(args = { }) ⇒ CInteger
Returns a new instance of CInteger.
110 111 112 113 114 115 116 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 110 def initialize(args = { }) args[:type] ||= 'Integer' super consistency(args[:list], args[:range]) @list = args[:list] @range = args[:range] end |
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
108 109 110 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 108 def list @list end |
#range ⇒ Object
Returns the value of attribute range.
108 109 110 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 108 def range @range end |