Class: PlatformAPI::AppWebhookEvent
- Inherits:
-
Object
- Object
- PlatformAPI::AppWebhookEvent
- Defined in:
- lib/platform-api/client.rb
Overview
Represents a webhook event that occurred.
Instance Method Summary collapse
-
#info(app_id_or_app_name, app_webhook_event_id) ⇒ Object
Returns the info for a specified webhook event.
-
#initialize(client) ⇒ AppWebhookEvent
constructor
A new instance of AppWebhookEvent.
-
#list(app_id_or_app_name) ⇒ Object
Lists existing webhook events for an app.
Constructor Details
#initialize(client) ⇒ AppWebhookEvent
Returns a new instance of AppWebhookEvent.
1315 1316 1317 |
# File 'lib/platform-api/client.rb', line 1315 def initialize(client) @client = client end |
Instance Method Details
#info(app_id_or_app_name, app_webhook_event_id) ⇒ Object
Returns the info for a specified webhook event.
1323 1324 1325 |
# File 'lib/platform-api/client.rb', line 1323 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) ⇒ Object
Lists existing webhook events for an app.
1330 1331 1332 |
# File 'lib/platform-api/client.rb', line 1330 def list(app_id_or_app_name) @client.app_webhook_event.list(app_id_or_app_name) end |