class OpenEHR::AM::Archetype::ValidityKind
original file: ref_imple_eiffel/components/adl_parser/src/interface/adl_definition.e
Constants
- DISALLOWED
- MANDATORY
- OPTIONAL
Attributes
value[R]
Public Class Methods
new(args = { })
click to toggle source
# File lib/open_ehr/am/archetype.rb, line 120 def initialize(args = { }) self.value = args[:value] end
Public Instance Methods
value=(value)
click to toggle source
# File lib/open_ehr/am/archetype.rb, line 124 def value=(value) unless [MANDATORY, OPTIONAL, DISALLOWED].include? value raise ArgumentError, 'invalid value' end @value = value end