Module: WideReceiver::Worker

Defined in:
lib/wide_receiver/worker.rb

Instance Method Summary collapse

Instance Method Details

#channelsObject



10
11
12
# File 'lib/wide_receiver/worker.rb', line 10

def channels
  @channels
end

#listen(*channels, registry: Registry.instance) ⇒ Object



5
6
7
8
# File 'lib/wide_receiver/worker.rb', line 5

def listen(*channels, registry: Registry.instance)
  @channels = channels
  registry.register(self.to_s, channels)
end