class PlatformAPI::AppWebhookEvent

Represents a webhook event that occurred.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 1352
def initialize(client)
  @client = client
end

Public Instance Methods

info(app_id_or_app_name, app_webhook_event_id) click to toggle source

Returns the info for a specified webhook event.

@param app_id_or_app_name: unique identifier of app or unique name of app @param app_webhook_event_id: the event's unique identifier

# File lib/platform-api/client.rb, line 1360
def info(app_id_or_app_name, app_webhook_event_id)
  @client.app_webhook_event.info(app_id_or_app_name, app_webhook_event_id)
end
list(app_id_or_app_name) click to toggle source

Lists existing webhook events for an app.

@param app_id_or_app_name: unique identifier of app or unique name of app

# File lib/platform-api/client.rb, line 1367
def list(app_id_or_app_name)
  @client.app_webhook_event.list(app_id_or_app_name)
end