Module: Parse::API::CloudFunctions
- Included in:
- Client
- Defined in:
- lib/parse/api/cloud_functions.rb
Overview
Defines the CloudCode interface for the Parse REST API
Instance Method Summary collapse
- #call_function(name, body = {}) ⇒ Parse::Response
Call a cloud function.
- #trigger_job(name, body = {}) ⇒ Parse::Response
Trigger a job.
Instance Method Details
#call_function(name, body = {}) ⇒ Parse::Response
Call a cloud function.
13 14 15 | # File 'lib/parse/api/cloud_functions.rb', line 13 def call_function(name, body = {}) request :post, "functions/#{name}", body: body end |
#trigger_job(name, body = {}) ⇒ Parse::Response
Trigger a job.
21 22 23 | # File 'lib/parse/api/cloud_functions.rb', line 21 def trigger_job(name, body = {}) request :post, "jobs/#{name}", body: body end |