module Isimud
Module for attaching and listening to events
Note: the following columns must be defined in your model:
:exchange_routing_keys text
Constants
- VERSION
Public Class Methods
client()
click to toggle source
Fetch or initialize the messaging client for this process. @return [Isimud::Client] messaging client
# File lib/isimud.rb, line 70 def self.client self.default_client ||= client_class.new(server, client_options || {}) end
client_class()
click to toggle source
# File lib/isimud.rb, line 63 def self.client_class type = "#{client_type}_client".classify "Isimud::#{type}".constantize end
connect()
click to toggle source
Connect to the messaging server
# File lib/isimud.rb, line 75 def self.connect client.connect end
model_watcher_enabled?()
click to toggle source
Return status of model watching mode
# File lib/isimud.rb, line 80 def self.model_watcher_enabled? enable_model_watcher.nil? || enable_model_watcher end
reconnect()
click to toggle source
Reconnect the messaging client
# File lib/isimud.rb, line 85 def self.reconnect client.reconnect end