class OpenEHR::AM::Archetype::ValidityKind

Constants

DISALLOWED
MANDATORY
OPTIONAL

Attributes

value[R]

Public Class Methods

new(args = { }) click to toggle source
# File lib/openehr/am/archetype.rb, line 124
def initialize(args = { })
  self.value = args[:value]
end

Public Instance Methods

value=(value) click to toggle source
# File lib/openehr/am/archetype.rb, line 128
def value=(value)
  unless [MANDATORY, OPTIONAL, DISALLOWED].include? value
    raise ArgumentError, 'invalid value'
  end
  @value = value
end