class RailsBand::ActionController::Event::SendFile

A wrapper for the event that is passed to ‘send_file.action_controller`.

def disposition

def disposition
  return @disposition if defined? @disposition
  @disposition = @event.payload[:disposition]
end

def filename

def filename
  return @filename if defined? @filename
  @filename = @event.payload[:filename]
end

def path

def path
  @path ||= @event.payload.fetch(:path)
end

def status

def status
  return @status if defined? @status
  @status = @event.payload[:status]
end

def type

def type
  return @type if defined? @type
  @type = @event.payload[:type]
end

def url_based_filename

def url_based_filename
  return @url_based_filename if defined? @url_based_filename
  @url_based_filename = @event.payload[:url_based_filename]
end