class OpenEHR::RM::Common::Generic::AuditDetails

Attributes

change_type[R]
committer[R]
description[RW]
system_id[R]
time_committed[R]

Public Class Methods

new(args = { }) click to toggle source
# File lib/openehr/rm/common/generic.rb, line 12
def initialize(args = { })
  self.system_id = args[:system_id]
  self.committer = args[:committer]
  self.time_committed = args[:time_committed]
  self.change_type = args[:change_type]
  self.description = args[:description]
end

Public Instance Methods

change_type=(change_type) click to toggle source
# File lib/openehr/rm/common/generic.rb, line 39
def change_type=(change_type)
  raise ArgumentError, 'change_type is mandatory' if change_type.nil?
  @change_type = change_type
end
committer=(committer) click to toggle source
# File lib/openehr/rm/common/generic.rb, line 27
def committer=(committer)
  raise ArgumentError, 'committer is mandatory' if committer.nil?
  @committer = committer
end
system_id=(system_id) click to toggle source
# File lib/openehr/rm/common/generic.rb, line 20
def system_id=(system_id)
  if system_id.nil? or system_id.empty?
    raise ArgumentError, 'system_id is mandatory'
  end
  @system_id = system_id
end
time_committed=(time_committed) click to toggle source
# File lib/openehr/rm/common/generic.rb, line 32
def time_committed=(time_committed)
  if time_committed.nil?
    raise ArgumentError, 'time_committed is mandatory'
  end
  @time_committed = time_committed
end