Class: Paddle::Classic::WebhooksResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/paddle/classic/resources/webhooks.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Paddle::Classic::Resource

Instance Method Details

#list(**params) ⇒ Object



4
5
6
7
# File 'lib/paddle/classic/resources/webhooks.rb', line 4

def list(**params)
  response = post_request("2.0/alert/webhooks", body: params)
  Collection.from_response(response, type: Webhook, key: "data")
end