Class: OpenEHR::AM::Archetype::ConstraintModel::Primitive::CDuration

Inherits:
CPrimitive
  • Object
show all
Defined in:
lib/openehr/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 = { }) ⇒ CDuration

Returns a new instance of CDuration.



332
333
334
335
336
337
338
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 332

def initialize(args = { })
  args[:type] = 'ISO8601_DURATION'
  super
  self.pattern = args[:pattern]
  self.list = args[:list]
  self.range = args[:range]
end

Instance Attribute Details

#days_allowedObject

Returns the value of attribute days_allowed.



328
329
330
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 328

def days_allowed
  @days_allowed
end

#fractional_seconds_allowedObject

Returns the value of attribute fractional_seconds_allowed.



329
330
331
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 329

def fractional_seconds_allowed
  @fractional_seconds_allowed
end

#hours_allowedObject

Returns the value of attribute hours_allowed.



328
329
330
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 328

def hours_allowed
  @hours_allowed
end

#listObject

Returns the value of attribute list.



330
331
332
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 330

def list
  @list
end

#minutes_allowedObject

Returns the value of attribute minutes_allowed.



328
329
330
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 328

def minutes_allowed
  @minutes_allowed
end

#months_allowedObject

Returns the value of attribute months_allowed.



327
328
329
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 327

def months_allowed
  @months_allowed
end

#patternObject

Returns the value of attribute pattern.



330
331
332
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 330

def pattern
  @pattern
end

#rangeObject

Returns the value of attribute range.



330
331
332
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 330

def range
  @range
end

#seconds_allowedObject

Returns the value of attribute seconds_allowed.



329
330
331
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 329

def seconds_allowed
  @seconds_allowed
end

#weeks_allowedObject

Returns the value of attribute weeks_allowed.



327
328
329
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 327

def weeks_allowed
  @weeks_allowed
end

#years_allowedObject

Returns the value of attribute years_allowed.



327
328
329
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 327

def years_allowed
  @years_allowed
end