Class: RailsBand::ActionDispatch::Event::Redirect
- Defined in:
- lib/rails_band/action_dispatch/event/redirect.rb
Overview
A wrapper for the event that is passed to redirect.action_dispatch.
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
Constructor Details
This class inherits a constructor from RailsBand::BaseEvent
Instance Method Details
#location ⇒ Object
12 13 14 |
# File 'lib/rails_band/action_dispatch/event/redirect.rb', line 12 def location @location ||= @event.payload.fetch(:location) end |
#request ⇒ Object
16 17 18 |
# File 'lib/rails_band/action_dispatch/event/redirect.rb', line 16 def request @request ||= @event.payload.fetch(:request) end |
#status ⇒ Object
8 9 10 |
# File 'lib/rails_band/action_dispatch/event/redirect.rb', line 8 def status @status ||= @event.payload.fetch(:status) end |