Class: FourthDimensional::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/fourth_dimensional/configuration.rb

Overview

FourthDimensional::Configuration

FourthDimensional.configure do |config|
  config.command_handlers = [...]
  config.event_handlers = [...]
  config.event_loader = FourthDimensional::ActiveRecord::EventLoader.new
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
25
26
# File 'lib/fourth_dimensional/configuration.rb', line 22

def initialize
  @command_handlers = []
  @event_handlers = []
  @table_prefix = 'fourd_'
end

Instance Attribute Details

#command_handlersObject

An array of command handlers



11
12
13
# File 'lib/fourth_dimensional/configuration.rb', line 11

def command_handlers
  @command_handlers
end

#event_handlersObject

An array of event handlers



14
15
16
# File 'lib/fourth_dimensional/configuration.rb', line 14

def event_handlers
  @event_handlers
end

#event_loaderObject

The event loader



17
18
19
# File 'lib/fourth_dimensional/configuration.rb', line 17

def event_loader
  @event_loader
end

#table_prefixObject

The table prefix



20
21
22
# File 'lib/fourth_dimensional/configuration.rb', line 20

def table_prefix
  @table_prefix
end