Class: OpenEHR::AM::Archetype::ConstraintModel::Primitive::CInteger

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

Direct Known Subclasses

CReal

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 = { }) ⇒ CInteger

Returns a new instance of CInteger.



110
111
112
113
114
115
116
# File 'lib/open_ehr/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

#listObject

Returns the value of attribute list.



108
109
110
# File 'lib/open_ehr/am/archetype/constraint_model/primitive.rb', line 108

def list
  @list
end

#rangeObject

Returns the value of attribute range.



108
109
110
# File 'lib/open_ehr/am/archetype/constraint_model/primitive.rb', line 108

def range
  @range
end