Class: Skylight::Core::Normalizers::CouchPotato::Query Private
- Inherits:
-
Normalizer
- Object
- Normalizer
- Skylight::Core::Normalizers::CouchPotato::Query
- Defined in:
- lib/skylight/core/normalizers/couch_potato/query.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.
Constant Summary collapse
- CAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"db.couch_db.query".freeze
Instance Attribute Summary
Attributes inherited from Normalizer
Instance Method Summary collapse
Methods inherited from Normalizer
#initialize, #normalize_after, register
Constructor Details
This class inherits a constructor from Skylight::Core::Normalizers::Normalizer
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.
12 13 14 15 16 |
# File 'lib/skylight/core/normalizers/couch_potato/query.rb', line 12 def normalize(_trace, name, payload) description = payload[:name] if payload name = name.sub("couch_potato.", "") [CAT, name, description] end |