Class: TeamsConnector::PostJob

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
lib/teams_connector/post_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(url, content) ⇒ Object



11
12
13
14
# File 'lib/teams_connector/post_job.rb', line 11

def perform(url, content)
  response = Net::HTTP.post(URI(url), content, { 'Content-Type' => 'application/json' })
  response.value
end