Method: Parse::API::CloudFunctions#trigger_job

Defined in:
lib/parse/api/cloud_functions.rb

#trigger_job(name, body = {}) ⇒ Parse::Response

Trigger a job.

Parameters:

  • name (String)

    the name of the job to trigger.

  • body (Hash) (defaults to: {})

    the parameters to forward to the job.

Returns:



22
23
24
# File 'lib/parse/api/cloud_functions.rb', line 22

def trigger_job(name, body = {})
  request :post, "jobs/#{name}", body: body
end