Class: RailsBand::ActionCable::Event::PerformAction
- Defined in:
- lib/rails_band/action_cable/event/perform_action.rb
Overview
A wrapper for the event that is passed to perform_action.action_cable.
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
#action ⇒ Object
12 13 14 |
# File 'lib/rails_band/action_cable/event/perform_action.rb', line 12 def action @action ||= @event.payload.fetch(:action) end |
#channel_class ⇒ Object
8 9 10 |
# File 'lib/rails_band/action_cable/event/perform_action.rb', line 8 def channel_class @channel_class ||= @event.payload.fetch(:channel_class) end |
#data ⇒ Object
16 17 18 |
# File 'lib/rails_band/action_cable/event/perform_action.rb', line 16 def data @data ||= @event.payload.fetch(:data) end |