Class: FourthDimensional::Configuration
- Inherits:
-
Object
- Object
- FourthDimensional::Configuration
- 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
-
#command_handlers ⇒ Object
An array of command handlers.
-
#event_handlers ⇒ Object
An array of event handlers.
-
#event_loader ⇒ Object
The event loader.
-
#table_prefix ⇒ Object
The table prefix.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_handlers ⇒ Object
An array of command handlers
11 12 13 |
# File 'lib/fourth_dimensional/configuration.rb', line 11 def command_handlers @command_handlers end |
#event_handlers ⇒ Object
An array of event handlers
14 15 16 |
# File 'lib/fourth_dimensional/configuration.rb', line 14 def event_handlers @event_handlers end |
#event_loader ⇒ Object
The event loader
17 18 19 |
# File 'lib/fourth_dimensional/configuration.rb', line 17 def event_loader @event_loader end |
#table_prefix ⇒ Object
The table prefix
20 21 22 |
# File 'lib/fourth_dimensional/configuration.rb', line 20 def table_prefix @table_prefix end |