class LucidShopify::DeleteWebhook
Public Class Methods
new(client: Container[:client])
click to toggle source
@param client [#delete]
# File lib/lucid_shopify/delete_webhook.rb, line 10 def initialize(client: Container[:client]) @client = client end
Public Instance Methods
call(credentials, id)
click to toggle source
@param credentials [Credentials] @param id [Integer]
@return [Hash] response data
# File lib/lucid_shopify/delete_webhook.rb, line 20 def call(credentials, id) @client.delete(credentials, "webhooks/#{id}") end