Class: Lumberjack::ContextLocals::Data Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#clearedObject

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

#contextObject

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

#loggingObject

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