Class: LucidShopify::DeleteWebhook

Inherits:
Object
  • Object
show all
Defined in:
lib/lucid_shopify/delete_webhook.rb

Instance Method Summary collapse

Constructor Details

#initialize(client: Container[:client]) ⇒ DeleteWebhook

Returns a new instance of DeleteWebhook.

Parameters:

  • client (#delete) (defaults to: Container[:client])


10
11
12
# File 'lib/lucid_shopify/delete_webhook.rb', line 10

def initialize(client: Container[:client])
  @client = client
end

Instance Method Details

#call(credentials, id) ⇒ Hash

Returns response data.

Parameters:

Returns:

  • (Hash)

    response data



20
21
22
# File 'lib/lucid_shopify/delete_webhook.rb', line 20

def call(credentials, id)
  @client.delete(credentials, "webhooks/#{id}")
end