Sha256: 9d1dea95411295e9425a788fafcfda08f210848f3024063a3fc1126971b4e22c
Contents?: true
Size: 475 Bytes
Versions: 6
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true module Engines module Debug class Extractor METRICS = %i[ debug_random ].freeze def call(provider) return unless requirements? metrics = METRICS.map do |metric| [metric, send(metric) || 0] end.to_h provider.emit(metrics) end private def requirements? true end def debug_random rand(0..100) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems