class Logtail::Contexts::Runtime
@private
Attributes
thread_id[R]
Public Class Methods
new(attributes)
click to toggle source
# File lib/logtail/contexts/runtime.rb, line 9 def initialize(attributes) @thread_id = attributes[:thread_id] end
Public Instance Methods
to_hash()
click to toggle source
Builds a hash representation containing simple objects, suitable for serialization (JSON).
# File lib/logtail/contexts/runtime.rb, line 14 def to_hash @to_hash ||= { runtime: Util::NonNilHashBuilder.build do |h| h.add(:thread_id, thread_id) end } end