Sha256: a0ce9c3efd2b08868769283dc2df7ebe4c792702890c70a3e7dd26214ad08dec
Contents?: true
Size: 713 Bytes
Versions: 2
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true class BCDD::Result module EventLogs module Tracking require_relative 'tracking/enabled' require_relative 'tracking/disabled' VERSION = 1 EMPTY_ARRAY = [].freeze EMPTY_HASH = {}.freeze EMPTY_TREE = Tree.new(nil).freeze EMPTY_IDS = { tree: EMPTY_ARRAY, matrix: EMPTY_HASH, level_parent: EMPTY_HASH }.freeze EMPTY = { version: VERSION, records: EMPTY_ARRAY, metadata: { duration: 0, ids: EMPTY_IDS, trace_id: nil }.freeze }.freeze def self.instance ::BCDD::Result::Config.instance.feature.enabled?(:event_logs) ? Tracking::Enabled.new : Tracking::Disabled end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcdd-result-1.1.0 | lib/bcdd/result/event_logs/tracking.rb |
bcdd-result-1.0.0 | lib/bcdd/result/event_logs/tracking.rb |