Module: Solid::Result::EventLogs
- Defined in:
- lib/solid/result/event_logs.rb,
lib/solid/result/event_logs/tree.rb,
lib/solid/result/event_logs/config.rb,
lib/solid/result/event_logs/listener.rb,
lib/solid/result/event_logs/tracking.rb,
lib/solid/result/event_logs/listeners.rb,
lib/solid/result/event_logs/tracking/enabled.rb,
lib/solid/result/event_logs/tracking/disabled.rb
Defined Under Namespace
Modules: Listener, Tracking Classes: Config, Listeners, Tree
Constant Summary collapse
- THREAD_VAR_NAME =
:solid_result_event_logs_tracking
- EnsureResult =
->(result) do return result if result.is_a?(::Solid::Result) raise Error::UnexpectedOutcome.build(outcome: result, origin: :event_logs) end
Class Method Summary collapse
Class Method Details
.tracking ⇒ Object
19 20 21 |
# File 'lib/solid/result/event_logs.rb', line 19 def self.tracking Thread.current[THREAD_VAR_NAME] ||= Tracking.instance end |