Class: Workers::PostToService

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

Instance Method Summary collapse

Instance Method Details

#perform(service_id, post_id, url) ⇒ Object


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

def perform(service_id, post_id, url)
  service = Service.find_by_id(service_id)
  post = Post.find_by_id(post_id)
  service.post(post, url)
end