class RailsBand::ActionController::Event::StartProcessing
A wrapper for the event that is passed to ‘start_processing.action_controller`.
Public Instance Methods
action()
click to toggle source
# File lib/rails_band/action_controller/event/start_processing.rb, line 12 def action @action ||= @event.payload.fetch(:action) end
controller()
click to toggle source
# File lib/rails_band/action_controller/event/start_processing.rb, line 8 def controller @controller ||= @event.payload.fetch(:controller) end
format()
click to toggle source
# File lib/rails_band/action_controller/event/start_processing.rb, line 24 def format @format ||= @event.payload.fetch(:format) end
headers()
click to toggle source
# File lib/rails_band/action_controller/event/start_processing.rb, line 20 def headers @headers ||= @event.payload.fetch(:headers) end
method()
click to toggle source
# File lib/rails_band/action_controller/event/start_processing.rb, line 28 def method @method ||= @event.payload.fetch(:method) end
params()
click to toggle source
# File lib/rails_band/action_controller/event/start_processing.rb, line 16 def params @params ||= @event.payload.fetch(:params).except(*INTERNAL_PARAMS) end
path()
click to toggle source
# File lib/rails_band/action_controller/event/start_processing.rb, line 32 def path @path ||= @event.payload.fetch(:path).split('?', 2).first end