class OpenEHR::AM::OpenEHRProfile::DataTypes::Basic::Transition
Attributes
action[R]
event[R]
guard[R]
next_state[R]
Public Class Methods
new(args = { })
click to toggle source
# File lib/open_ehr/am/openehr_profile/data_types/basic.rb, line 75 def initialize(args = { }) self.event = args[:event] self.guard = args[:guard] self.action = args[:action] self.next_state = args[:next_state] end
Public Instance Methods
action=(action)
click to toggle source
# File lib/open_ehr/am/openehr_profile/data_types/basic.rb, line 96 def action=(action) if !action.nil? && action.empty? raise ArgumentError, 'action should not be empty' end @action = action end
event=(event)
click to toggle source
# File lib/open_ehr/am/openehr_profile/data_types/basic.rb, line 82 def event=(event) if event.nil? or event.empty? raise ArgumentError, 'event is mandatory' end @event = event end
guard=(guard)
click to toggle source
# File lib/open_ehr/am/openehr_profile/data_types/basic.rb, line 89 def guard=(guard) if !guard.nil? && guard.empty? raise ArgumentError, 'guard should not be empty' end @guard = guard end
next_state=(next_state)
click to toggle source
# File lib/open_ehr/am/openehr_profile/data_types/basic.rb, line 103 def next_state=(next_state) if next_state.nil? raise ArgumentError, 'next state is mandatory' end @next_state = next_state end