Sha256: 8b8b46db328d7be21c586563c338d9f3802f54e4fa25507d8862e7473760c3b8
Contents?: true
Size: 498 Bytes
Versions: 18
Compression:
Stored size: 498 Bytes
Contents
require "logtail/context" require "logtail/util" module Logtail module Contexts # @private class Session < Context attr_reader :id def initialize(attributes) @id = attributes[:id] end # Builds a hash representation containing simple objects, suitable for serialization (JSON). def to_hash @to_hash ||= { session: Util::NonNilHashBuilder.build do |h| h.add(:id, id) end } end end end end
Version data entries
18 entries across 18 versions & 2 rubygems