Module: Streamline
- Defined in:
- lib/streamline.rb,
lib/streamline/util.rb,
lib/streamline/stores.rb,
lib/streamline/target.rb,
lib/streamline/handler.rb,
lib/streamline/tracker.rb,
lib/streamline/version.rb,
lib/streamline/registry.rb,
lib/streamline/configuration.rb,
lib/streamline/jobs/base_job.rb,
lib/streamline/stores/base_store.rb,
lib/streamline/jobs/track_event_job.rb,
lib/streamline/jobs/handle_event_job.rb,
lib/streamline/stores/active_record_store.rb,
lib/generators/streamline/stores/active_record_generator.rb
Defined Under Namespace
Modules: Generators, Handler, Jobs, Stores, Target, Util
Classes: Configuration, Registry, Tracker
Constant Summary
collapse
- VERSION =
'0.1.1'
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
14
15
16
|
# File 'lib/streamline/configuration.rb', line 14
def configuration
@configuration ||= Configuration.new
end
|
10
11
12
|
# File 'lib/streamline/configuration.rb', line 10
def configure
yield(configuration) if block_given?
end
|
.registry ⇒ Object
27
28
29
|
# File 'lib/streamline/registry.rb', line 27
def registry
@registry ||= Registry.new
end
|
.store ⇒ Object
5
6
7
8
9
10
11
12
13
|
# File 'lib/streamline/stores.rb', line 5
def store
@store ||= begin
klass = case configuration.store
when :active_record then Stores::ActiveRecordStore
end
klass.new
end
end
|
.tracker ⇒ Object
24
25
26
|
# File 'lib/streamline/tracker.rb', line 24
def tracker
@tracker ||= Tracker.new
end
|