Class: Lago::Api::Resources::WebhookEndpoint
- Inherits:
-
Base
- Object
- Base
- Lago::Api::Resources::WebhookEndpoint
show all
- Defined in:
- lib/lago/api/resources/webhook_endpoint.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#create, #destroy, #get, #get_all, #initialize, #update
Instance Method Details
#api_resource ⇒ Object
7
8
9
|
# File 'lib/lago/api/resources/webhook_endpoint.rb', line 7
def api_resource
'webhook_endpoints'
end
|
#root_name ⇒ Object
11
12
13
|
# File 'lib/lago/api/resources/webhook_endpoint.rb', line 11
def root_name
'webhook_endpoint'
end
|
#whitelist_params(params) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/lago/api/resources/webhook_endpoint.rb', line 15
def whitelist_params(params)
{
root_name => {
webhook_url: params[:webhook_url],
signature_algo: params[:signature_algo],
}.compact,
}
end
|