class StimulusReflex::CableReadyChannels

Public Class Methods

new(stream_name) click to toggle source
# File lib/stimulus_reflex/cable_ready_channels.rb, line 7
def initialize(stream_name)
  @stream_name = stream_name
end

Public Instance Methods

cable_ready_channels() click to toggle source
# File lib/stimulus_reflex/cable_ready_channels.rb, line 11
def cable_ready_channels
  CableReady::Channels.instance
end
method_missing(name, *args) click to toggle source
Calls superclass method
# File lib/stimulus_reflex/cable_ready_channels.rb, line 19
def method_missing(name, *args)
  return stimulus_reflex_channel.public_send(name, *args) if stimulus_reflex_channel.respond_to?(name)
  super
end
respond_to_missing?(name, include_all) click to toggle source
Calls superclass method
# File lib/stimulus_reflex/cable_ready_channels.rb, line 24
def respond_to_missing?(name, include_all)
  stimulus_reflex_channel.respond_to?(name) || super
end
stimulus_reflex_channel() click to toggle source
# File lib/stimulus_reflex/cable_ready_channels.rb, line 15
def stimulus_reflex_channel
  CableReady::Channels.instance[@stream_name]
end