class OpenEHR::AM::OpenEHRProfile::DataTypes::Basic::StateMachine
Attributes
states[R]
Public Class Methods
new(args = { })
click to toggle source
# File lib/openehr/am/openehr_profile/data_types/basic.rb, line 26 def initialize(args = { }) self.states = args[:states] end
Public Instance Methods
states=(states)
click to toggle source
# File lib/openehr/am/openehr_profile/data_types/basic.rb, line 30 def states=(states) if states.nil? or states.empty? raise ArgumentError, 'states are mandatory' end @states = states end