Module: Reactor::Publishable::ClassMethods
- Defined in:
- lib/reactor/models/concerns/publishable.rb
Instance Method Summary collapse
Instance Method Details
#events ⇒ Object
24 25 26 |
# File 'lib/reactor/models/concerns/publishable.rb', line 24 def events @events ||= {} end |
#publishes(name, data = {}) ⇒ Object
20 21 22 |
# File 'lib/reactor/models/concerns/publishable.rb', line 20 def publishes(name, data = {}) events[name] = data end |