Class: RailsBand::ActionController::Event::StartProcessing
- Inherits:
-
BaseEvent
- Object
- BaseEvent
- RailsBand::ActionController::Event::StartProcessing
show all
- Defined in:
- lib/rails_band/action_controller/event/start_processing.rb
Overview
A wrapper for the event that is passed to start_processing.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
#action ⇒ Object
12
13
14
|
# File 'lib/rails_band/action_controller/event/start_processing.rb', line 12
def action
@action ||= @event.payload.fetch(:action)
end
|
#controller ⇒ Object
8
9
10
|
# File 'lib/rails_band/action_controller/event/start_processing.rb', line 8
def controller
@controller ||= @event.payload.fetch(:controller)
end
|
24
25
26
|
# File 'lib/rails_band/action_controller/event/start_processing.rb', line 24
def format
@format ||= @event.payload.fetch(:format)
end
|
20
21
22
|
# File 'lib/rails_band/action_controller/event/start_processing.rb', line 20
def
||= @event.payload.fetch(:headers)
end
|
#method ⇒ Object
28
29
30
|
# File 'lib/rails_band/action_controller/event/start_processing.rb', line 28
def method
@method ||= @event.payload.fetch(:method)
end
|
#params ⇒ Object
16
17
18
|
# File 'lib/rails_band/action_controller/event/start_processing.rb', line 16
def params
@params ||= @event.payload.fetch(:params).except(*INTERNAL_PARAMS)
end
|
#path ⇒ Object
32
33
34
|
# File 'lib/rails_band/action_controller/event/start_processing.rb', line 32
def path
@path ||= @event.payload.fetch(:path).split('?', 2).first
end
|