Method: Parse::Webhooks.success

Defined in:
lib/parse/webhooks.rb

.success(data = true) ⇒ Hash

Generates a success response for Parse Server.

Parameters:

  • data (Object) (defaults to: true)

    the data to send back with the success.

Returns:

  • (Hash)

    a success data payload



201
202
203
# File 'lib/parse/webhooks.rb', line 201

def success(data = true)
  { success: data }.to_json
end