Module: Isimud::EventObserver::ClassMethods

Defined in:
lib/isimud/event_observer.rb

Instance Method Summary collapse

Instance Method Details

#event_queue_name(id) ⇒ Object



123
124
125
# File 'lib/isimud/event_observer.rb', line 123

def event_queue_name(id)
  [queue_prefix, base_class.name.underscore, id].join('.')
end

#find_active_observersObject

Method used to retrieve active observers. Override in your EventObserver class



115
116
117
# File 'lib/isimud/event_observer.rb', line 115

def find_active_observers
  []
end

#queue_prefixObject



119
120
121
# File 'lib/isimud/event_observer.rb', line 119

def queue_prefix
  Rails.application.class.parent_name.downcase
end