Sha256: 4aeed52f3ec05f6a52341ebb7cad86026fefb459fe1d95fd09974c127587e341
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
require "timber/context" module Timber module Contexts # @private class Runtime < Context attr_reader :thread_id def initialize(attributes) @thread_id = attributes[:thread_id] end # Builds a hash representation containing simple objects, suitable for serialization (JSON). def to_hash @to_hash ||= { runtime: Util::NonNilHashBuilder.build do |h| h.add(:thread_id, thread_id) end } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
timber-3.0.1 | lib/timber/contexts/runtime.rb |
timber-3.0.0 | lib/timber/contexts/runtime.rb |