lib/smartling/jobs.rb in smartring-0.0.5 vs lib/smartling/jobs.rb in smartring-0.0.6

- old
+ new

@@ -36,9 +36,15 @@ headers = { 'Content-Type' => 'application/json' } return post(path, headers: headers) if body.empty? post(path, body: body.to_json, headers: headers) end + def delete_job(project_id: @project_id, translation_job_uid:) + path = "/jobs-api/v3/projects/#{project_id}/jobs/#{translation_job_uid}" +:A + delete(path) + end + def job(project_id: @project_id, translation_job_uid:) path = "/jobs-api/v3/projects/#{project_id}/jobs/#{translation_job_uid}" get(path) end