Class: Workers::ReceiveLocalBatch

Inherits:
Base
  • Object
show all
Defined in:
app/workers/receive_local_batch.rb

Instance Method Summary collapse

Methods inherited from Base

#suppress_annoying_errors

Instance Method Details

#perform(object_class_string, object_id, recipient_user_ids) ⇒ Object


9
10
11
12
13
# File 'app/workers/receive_local_batch.rb', line 9

def perform(object_class_string, object_id, recipient_user_ids)
  object = object_class_string.constantize.find(object_id)
  receiver = Postzord::Receiver::LocalBatch.new(object, recipient_user_ids)
  receiver.perform!
end