Class: Workers::PostToService

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

Instance Method Summary collapse

Methods inherited from Base

#suppress_annoying_errors

Instance Method Details

#perform(service_id, post_id, url) ⇒ Object


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

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