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.
315 316 317 318 319 320 321 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 315 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.
311 312 313 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 311 def days_allowed @days_allowed end |
#fractional_seconds_allowed ⇒ Object
Returns the value of attribute fractional_seconds_allowed.
312 313 314 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 312 def fractional_seconds_allowed @fractional_seconds_allowed end |
#hours_allowed ⇒ Object
Returns the value of attribute hours_allowed.
311 312 313 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 311 def hours_allowed @hours_allowed end |
#list ⇒ Object
Returns the value of attribute list.
313 314 315 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 313 def list @list end |
#minutes_allowed ⇒ Object
Returns the value of attribute minutes_allowed.
311 312 313 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 311 def minutes_allowed @minutes_allowed end |
#months_allowed ⇒ Object
Returns the value of attribute months_allowed.
310 311 312 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 310 def months_allowed @months_allowed end |
#pattern ⇒ Object
Returns the value of attribute pattern.
313 314 315 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 313 def pattern @pattern end |
#range ⇒ Object
Returns the value of attribute range.
313 314 315 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 313 def range @range end |
#seconds_allowed ⇒ Object
Returns the value of attribute seconds_allowed.
312 313 314 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 312 def seconds_allowed @seconds_allowed end |
#weeks_allowed ⇒ Object
Returns the value of attribute weeks_allowed.
310 311 312 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 310 def weeks_allowed @weeks_allowed end |
#years_allowed ⇒ Object
Returns the value of attribute years_allowed.
310 311 312 |
# File 'lib/openehr/am/archetype/constraint_model/primitive.rb', line 310 def years_allowed @years_allowed end |