Class: ApplicationCable::ScopedChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/activestate/channel.rb

Instance Method Summary collapse

Constructor Details

#initialize(channel, subject) ⇒ ScopedChannel

Returns a new instance of ScopedChannel.



41
42
43
44
# File 'lib/activestate/channel.rb', line 41

def initialize channel, subject
  @channel = channel
  @subject = subject
end

Instance Method Details

#state(*path) ⇒ Object



46
47
48
# File 'lib/activestate/channel.rb', line 46

def state(*path)
  State.new(@subject, @channel, path.join('.'))
end