Class: Lumberjack::ContextLocals::Data Private
- Inherits:
-
Object
- Object
- Lumberjack::ContextLocals::Data
- Defined in:
- lib/lumberjack/context_locals.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Lightweight structure to hold context-local data.
Instance Attribute Summary collapse
- #cleared ⇒ Object private
- #context ⇒ Object private
- #logging ⇒ Object private
Instance Method Summary collapse
-
#initialize(copy = nil) ⇒ Data
constructor
private
A new instance of Data.
Constructor Details
#initialize(copy = nil) ⇒ Data
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Data.
12 13 14 15 16 |
# File 'lib/lumberjack/context_locals.rb', line 12 def initialize(copy = nil) @context = copy&.context @logging = copy&.logging @cleared = copy&.cleared end |
Instance Attribute Details
#cleared ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/lumberjack/context_locals.rb', line 10 def cleared @cleared end |
#context ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/lumberjack/context_locals.rb', line 10 def context @context end |
#logging ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/lumberjack/context_locals.rb', line 10 def logging @logging end |