module Clockwork
TERMINOLOGY
For clarity, we have chosen to define terms as follows for better communication in the code, and when discussing the database event implementation.
“Event”: “Native” Clockwork events, whether Clockwork::Event or Clockwork::DatabaseEvents::Event “Model”: Database-backed model instances representing events to be created in Clockwork
-
When the DatabaseEvents::Manager creates events (via its register)
- it creates a new DatabaseEvents::Event - DatabaseEvents::Event#initialize registers it with the EventStore
Public Class Methods
included(klass)
click to toggle source
# File lib/clockwork.rb, line 10 def included(klass) klass.send "include", Methods klass.extend Methods end
manager()
click to toggle source
# File lib/clockwork.rb, line 15 def manager @manager ||= Manager.new end
manager=(manager)
click to toggle source
# File lib/clockwork.rb, line 19 def manager=(manager) @manager = manager end