Class: RailsBand::ActionController::Event::SendFile
- Inherits:
-
BaseEvent
- Object
- BaseEvent
- RailsBand::ActionController::Event::SendFile
show all
- Defined in:
- lib/rails_band/action_controller/event/send_file.rb
Overview
A wrapper for the event that is passed to send_file.action_controller.
Instance Attribute Summary
Attributes inherited from BaseEvent
#allocations, #cpu_time, #duration, #end, #idle_time, #name, #time, #transaction_id
Instance Method Summary
collapse
Methods inherited from BaseEvent
#initialize, #slice, #to_h
Instance Method Details
#disposition ⇒ Object
24
25
26
27
28
|
# 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 ⇒ Object
12
13
14
15
16
|
# 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 ⇒ Object
8
9
10
|
# File 'lib/rails_band/action_controller/event/send_file.rb', line 8
def path
@path ||= @event.payload.fetch(:path)
end
|
#status ⇒ Object
30
31
32
33
34
|
# 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 ⇒ Object
18
19
20
21
22
|
# 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 ⇒ Object
36
37
38
39
40
|
# 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
|