Class: Workers::DeletePostFromService

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

Instance Method Summary collapse

Instance Method Details

#perform(service_id, opts) ⇒ Object


11
12
13
14
15
# File 'app/workers/delete_post_from_service.rb', line 11

def perform(service_id, opts)
  service = Service.find_by_id(service_id)
  opts = ActiveSupport::HashWithIndifferentAccess.new(opts)
  service.delete_from_service(opts)
end