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

  1. 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


10
11
12
13
# File 'lib/clockwork.rb', line 10

def included(klass)
  klass.send "include", Methods
  klass.extend Methods
end

.managerObject


15
16
17
# File 'lib/clockwork.rb', line 15

def manager
  @manager ||= Manager.new
end

.manager=(manager) ⇒ Object


19
20
21
# File 'lib/clockwork.rb', line 19

def manager=(manager)
  @manager = manager
end