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.
14 15 16 |
# File 'lib/parse/api/cloud_functions.rb', line 14 def call_function(name, body = {}) request :post, "functions/#{name}", body: body end |
#trigger_job(name, body = {}) ⇒ Parse::Response
Trigger a job.
22 23 24 |
# File 'lib/parse/api/cloud_functions.rb', line 22 def trigger_job(name, body = {}) request :post, "jobs/#{name}", body: body end |