Class: RailsBand::ActionCable::Event::Broadcast

Inherits:
BaseEvent
  • Object
show all
Defined in:
lib/rails_band/action_cable/event/broadcast.rb

Overview

A wrapper for the event that is passed to broadcast.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

#initialize, #slice, #to_h

Constructor Details

This class inherits a constructor from RailsBand::BaseEvent

Instance Method Details

#broadcasting ⇒ Object



8
9
10
# File 'lib/rails_band/action_cable/event/broadcast.rb', line 8

def broadcasting
  @broadcasting ||= @event.payload.fetch(:broadcasting)
end

#coder ⇒ Object



16
17
18
# File 'lib/rails_band/action_cable/event/broadcast.rb', line 16

def coder
  @coder ||= @event.payload.fetch(:coder)
end

#message ⇒ Object



12
13
14
# File 'lib/rails_band/action_cable/event/broadcast.rb', line 12

def message
  @message ||= @event.payload.fetch(:message)
end