Class: PlatformAPI::AppWebhookDelivery

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Represents the delivery of a webhook notification, including its current status.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AppWebhookDelivery

Returns a new instance of AppWebhookDelivery.



1302
1303
1304
# File 'lib/platform-api/client.rb', line 1302

def initialize(client)
  @client = client
end

Instance Method Details

#info(app_id_or_app_name, app_webhook_delivery_id) ⇒ Object

Returns the info for an existing delivery.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app

  • app_webhook_delivery_id:

    the delivery’s unique identifier



1310
1311
1312
# File 'lib/platform-api/client.rb', line 1310

def info(app_id_or_app_name, app_webhook_delivery_id)
  @client.app_webhook_delivery.info(app_id_or_app_name, app_webhook_delivery_id)
end

#list(app_id_or_app_name) ⇒ Object

Lists existing deliveries for an app.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app



1317
1318
1319
# File 'lib/platform-api/client.rb', line 1317

def list(app_id_or_app_name)
  @client.app_webhook_delivery.list(app_id_or_app_name)
end