Module: Clockwork
- Extended by:
- Methods
- Defined in:
- lib/clockwork/database_events.rb,
lib/clockwork.rb,
lib/clockwork/at.rb,
lib/clockwork/event.rb,
lib/clockwork/manager.rb,
lib/clockwork/database_events/event.rb,
lib/clockwork/database_events/manager.rb,
lib/clockwork/database_events/event_store.rb,
lib/clockwork/database_events/synchronizer.rb,
lib/clockwork/database_events/event_collection.rb
Overview
-
When the DatabaseEvents::Manager creates events (via its #register)
- it creates a new DatabaseEvents::Event
- DatabaseEvents::Event#initialize registers it with the EventStore
Defined Under Namespace
Modules: DatabaseEvents, Methods Classes: At, Event, Manager
Class Method Summary collapse
Methods included from Methods
clear!, configure, error_handler, every, handler, on, run, sync_database_events
Class Method Details
.included(klass) ⇒ Object
11 12 13 14 |
# File 'lib/clockwork.rb', line 11 def included(klass) klass.send "include", Methods klass.extend Methods end |
.manager ⇒ Object
16 17 18 |
# File 'lib/clockwork.rb', line 16 def manager @manager ||= Manager.new end |
.manager=(manager) ⇒ Object
20 21 22 |
# File 'lib/clockwork.rb', line 20 def manager=(manager) @manager = manager end |