class RailsBand::ActionController::Event::SendFile
A wrapper for the event that is passed to ‘send_file.action_controller`.
Public Instance Methods
disposition()
click to toggle source
# File lib/rails_band/action_controller/event/send_file.rb, line 24 def disposition return @disposition if defined? @disposition @disposition = @event.payload[:disposition] end
filename()
click to toggle source
# File lib/rails_band/action_controller/event/send_file.rb, line 12 def filename return @filename if defined? @filename @filename = @event.payload[:filename] end
path()
click to toggle source
# File lib/rails_band/action_controller/event/send_file.rb, line 8 def path @path ||= @event.payload.fetch(:path) end
status()
click to toggle source
# File lib/rails_band/action_controller/event/send_file.rb, line 30 def status return @status if defined? @status @status = @event.payload[:status] end
type()
click to toggle source
# File lib/rails_band/action_controller/event/send_file.rb, line 18 def type return @type if defined? @type @type = @event.payload[:type] end
url_based_filename()
click to toggle source
# File lib/rails_band/action_controller/event/send_file.rb, line 36 def url_based_filename return @url_based_filename if defined? @url_based_filename @url_based_filename = @event.payload[:url_based_filename] end