Module: AccountComponent::Commands::Command::BuildMessage

Defined in:
lib/account_component/commands/command.rb

Instance Method Summary collapse

Instance Method Details

#build_message(message_class, previous_message) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/account_component/commands/command.rb', line 35

def build_message(message_class, previous_message)
  message = message_class.new

  unless previous_message.nil?
    message..follow(previous_message.)
  end

  message
end