Module: TireAsyncIndex
- Extended by:
- TireAsyncIndex
- Included in:
- TireAsyncIndex
- Defined in:
- lib/tire_async_index.rb,
lib/tire_async_index/version.rb,
lib/tire_async_index/exceptions.rb,
lib/tire_async_index/configuration.rb
Defined Under Namespace
Classes: Configuration, EngineNotFound
Constant Summary
collapse
- VERSION =
"0.0.3"
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
7
8
9
|
# File 'lib/tire_async_index.rb', line 7
def configuration
@configuration
end
|
Instance Method Details
9
10
11
12
13
|
# File 'lib/tire_async_index.rb', line 9
def configure
self.configuration ||= Configuration.new
yield(configuration)
reconfig_workers
end
|
#engine ⇒ Object
19
20
21
|
# File 'lib/tire_async_index.rb', line 19
def engine
self.configuration.engine
end
|
#queue ⇒ Object
15
16
17
|
# File 'lib/tire_async_index.rb', line 15
def queue
self.configuration.queue
end
|
#reconfig_workers ⇒ Object