Class: PlatformAPI::AppWebhook

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

Overview

Represents the details of a webhook subscription

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ AppWebhook

Returns a new instance of AppWebhook.



1838
1839
1840
# File 'lib/platform-api/client.rb', line 1838

def initialize(client)
  @client = client
end

Instance Method Details

#create(app_id_or_app_name, body = {}) ⇒ Object



1852
1853
1854
# File 'lib/platform-api/client.rb', line 1852

def create(app_id_or_app_name, body = {})
  @client.app_webhook.create(app_id_or_app_name, body)
end

#delete(app_id_or_app_name, app_webhook_id) ⇒ Object



1866
1867
1868
# File 'lib/platform-api/client.rb', line 1866

def delete(app_id_or_app_name, app_webhook_id)
  @client.app_webhook.delete(app_id_or_app_name, app_webhook_id)
end

#info(app_id_or_app_name, app_webhook_id) ⇒ Object



1880
1881
1882
# File 'lib/platform-api/client.rb', line 1880

def info(app_id_or_app_name, app_webhook_id)
  @client.app_webhook.info(app_id_or_app_name, app_webhook_id)
end

#list(app_id_or_app_name) ⇒ Object



1892
1893
1894
# File 'lib/platform-api/client.rb', line 1892

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

#update(app_id_or_app_name, app_webhook_id, body = {}) ⇒ Object



1908
1909
1910
# File 'lib/platform-api/client.rb', line 1908

def update(app_id_or_app_name, app_webhook_id, body = {})
  @client.app_webhook.update(app_id_or_app_name, app_webhook_id, body)
end