class Skylight::Core::Normalizers::Grape::EndpointRender

Constants

CAT

Public Instance Methods

normalize(_trace, _name, payload) click to toggle source
# File lib/skylight/core/normalizers/grape/endpoint_render.rb, line 9
def normalize(_trace, _name, payload)
  if (endpoint = payload[:endpoint])
    path = get_path(endpoint)
    namespace = get_namespace(endpoint)
    method = get_method(endpoint)

    title = [method, namespace, path].join(" ").gsub(/\s+/, " ")

    [CAT, title, nil]
  else
    :skip
  end
end