Class: Messaging::Controls::Handler::BlockAndHandleMethod::Example

Inherits:
Object
  • Object
show all
Includes:
Message, Handle
Defined in:
lib/messaging/controls/handler.rb

Constant Summary

Constants included from Message

Message::Example

Instance Method Summary collapse

Methods included from Message

attribute, data, example, id, message_class, other_attribute, type

Methods included from Handle

#call, #handle_message, #handle_message_data, included, #strict

Instance Method Details

#handle(message_data) ⇒ Object



50
51
52
# File 'lib/messaging/controls/handler.rb', line 50

def handle(message_data)
  message_data.data = { attribute: 'some data value set by handler' }
end