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.



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

def initialize(args = { })
  super
  consistency(args[:list], args[:range])
  @list = args[:list]
  @range = args[:range]
end

Instance Attribute Details

#listObject

Returns the value of attribute list.



106
107
108
# File 'lib/open_ehr/am/archetype/constraint_model/primitive.rb', line 106

def list
  @list
end

#rangeObject

Returns the value of attribute range.



106
107
108
# File 'lib/open_ehr/am/archetype/constraint_model/primitive.rb', line 106

def range
  @range
end