Class: Skylight::Normalizers::Container Private
- Defined in:
- lib/skylight/normalizers.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(normalizers) ⇒ Container
constructor
private
A new instance of Container.
- #normalize(trace, name, payload) ⇒ Object private
Constructor Details
#initialize(normalizers) ⇒ Container
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Container.
112 113 114 |
# File 'lib/skylight/normalizers.rb', line 112 def initialize(normalizers) @normalizers = normalizers end |
Instance Method Details
#normalize(trace, name, payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
116 117 118 119 |
# File 'lib/skylight/normalizers.rb', line 116 def normalize(trace, name, payload) normalizer = @normalizers[name] || DEFAULT normalizer.normalize(trace, name, payload) end |