class SyncClient::Configurators::MessageHandlers

Attributes

message_handlers[R]

Public Class Methods

new() click to toggle source
# File lib/sync_client/configurators/message_handlers.rb, line 6
def initialize
  @message_handlers = {}.with_indifferent_access
end

Public Instance Methods

add_message_handler(name, handler, actions) click to toggle source
# File lib/sync_client/configurators/message_handlers.rb, line 10
def add_message_handler(name, handler, actions)
  message_handlers[name] ||= Configurations::MessageHandler.new(name, handler, actions)
end