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/registry.rb,
lib/clockwork/database_events/sync_performer.rb

Overview

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

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