Class: ActorSync::Worker

Inherits:
ApplicationJob
  • Object
show all
Defined in:
lib/actor_sync/worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(actor_klass, actor_id, destination, options) ⇒ Object



5
6
7
8
9
10
# File 'lib/actor_sync/worker.rb', line 5

def perform(actor_klass, actor_id, destination, options)
  actor = actor_klass.find(actor_id)
  adapter_klass = Adapters.get_adapter_klass(destination)

  adapter_klass.send(actor, options, Configuration)
end