Class: OpenEHR::AM::Archetype::ConstraintModel::Primitive::CDuration
- Inherits:
-
CPrimitive
- Object
- CPrimitive
- OpenEHR::AM::Archetype::ConstraintModel::Primitive::CDuration
- Defined in:
- lib/openehr/am/archetype/constraint_model/primitive.rb
Instance Attribute Summary collapse
-
#days_allowed ⇒ Object
Returns the value of attribute days_allowed.
-
#fractional_seconds_allowed ⇒ Object
Returns the value of attribute fractional_seconds_allowed.
-
#hours_allowed ⇒ Object
Returns the value of attribute hours_allowed.
-
#list ⇒ Object
Returns the value of attribute list.
-
#minutes_allowed ⇒ Object
Returns the value of attribute minutes_allowed.
-
#months_allowed ⇒ Object
Returns the value of attribute months_allowed.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#range ⇒ Object
Returns the value of attribute range.
-
#seconds_allowed ⇒ Object
Returns the value of attribute seconds_allowed.
-
#weeks_allowed ⇒ Object
Returns the value of attribute weeks_allowed.
-
#years_allowed ⇒ Object
Returns the value of attribute years_allowed.
Attributes inherited from CPrimitive
#assumed_value, #default_value, #type
Instance Method Summary collapse
-
#initialize(args = { }) ⇒ CDuration
constructor
A new instance of CDuration.
Methods inherited from CPrimitive
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_allowed ⇒ Object
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_allowed ⇒ Object
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_allowed ⇒ Object
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 |
#list ⇒ Object
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_allowed ⇒ Object
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_allowed ⇒ Object
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 |
#pattern ⇒ Object
Returns the value of attribute pattern.
330 331 332 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 330 def pattern @pattern end |
#range ⇒ Object
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_allowed ⇒ Object
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_allowed ⇒ Object
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_allowed ⇒ Object
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 |