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