class Skylight::Core::Normalizers::ActionController::SendFile

Constants

ATTACHMENT
CAT
OCTET_STREAM
TITLE

Public Class Methods

new(*) click to toggle source
# File lib/skylight/core/normalizers/action_controller/send_file.rb, line 38
def initialize(*)
  super

  @mimes = Mime::SET.each_with_object({}) do |mime, hash|
    hash[mime.symbol] = mime.to_s.dup.freeze
    hash
  end
end

Public Instance Methods

normalize(_trace, _name, _payload) click to toggle source
# File lib/skylight/core/normalizers/action_controller/send_file.rb, line 22
def normalize(_trace, _name, _payload)
  title = TITLE

  # depending on normalization, we probably want this to eventually
  # include the full path, but we need to make sure we have a good
  # deduping strategy first.
  desc = nil

  [CAT, title, desc]
end