Method: Parse::Webhooks.run_function

Defined in:
lib/parse/webhooks.rb

.run_function(name, params) ⇒ Object

Run a locally registered webhook function. This bypasses calling a function through Parse-Server if the method handler is registered locally.

Returns:

  • (Object)

    the result of the function.



152
153
154
155
156
157
# File 'lib/parse/webhooks.rb', line 152

def run_function(name, params)
  payload = Payload.new
  payload.function_name = name
  payload.params = params
  call_route(:function, name, payload)
end