Class: PlatformAPI::AddonWebhookEvent

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

Overview

Represents a webhook event that occurred.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AddonWebhookEvent

Returns a new instance of AddonWebhookEvent.



1037
1038
1039
# File 'lib/platform-api/client.rb', line 1037

def initialize(client)
  @client = client
end

Instance Method Details

#info(addon_id_or_addon_name, app_webhook_event_id) ⇒ Object

Returns the info for a specified webhook event. Can only be accessed by the add-on partner providing this add-on.

Parameters:

  • addon_id_or_addon_name:

    unique identifier of add-on or globally unique name of the add-on

  • app_webhook_event_id:

    the event's unique identifier



1045
1046
1047
# File 'lib/platform-api/client.rb', line 1045

def info(addon_id_or_addon_name, app_webhook_event_id)
  @client.addon_webhook_event.info(addon_id_or_addon_name, app_webhook_event_id)
end

#list(addon_id_or_addon_name) ⇒ Object

Lists existing webhook events for an add-on. Can only be accessed by the add-on partner providing this add-on.

Parameters:

  • addon_id_or_addon_name:

    unique identifier of add-on or globally unique name of the add-on



1052
1053
1054
# File 'lib/platform-api/client.rb', line 1052

def list(addon_id_or_addon_name)
  @client.addon_webhook_event.list(addon_id_or_addon_name)
end