Class: Toot::CallsHandlers

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/toot/calls_handlers.rb

Instance Method Summary collapse

Instance Method Details

#perform(event_data) ⇒ Object



5
6
7
8
9
10
# File 'lib/toot/calls_handlers.rb', line 5

def perform(event_data)
  event = Event.new(event_data)
  Toot.config
    .subscriptions_for_channel(event.channel)
    .each { |s| s.handler.call(event) }
end