module InfluxReporter::Normalizers
@api private
Constants
- DEFAULT
Public Class Methods
build(config)
click to toggle source
# File lib/influx_reporter/normalizers.rb, line 30 def self.build(config) normalizers = @registered.each_with_object({}) do |kv, coll| name, cls = kv coll[name] = cls.new config end Container.new(normalizers) end
register(name, cls)
click to toggle source
# File lib/influx_reporter/normalizers.rb, line 26 def self.register(name, cls) (@registered ||= {})[name] = cls end