Class: Lucid::Shopify::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])


9
10
11
# File 'lib/lucid/shopify/delete_webhook.rb', line 9

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

Instance Method Details

#call(credentials, id) ⇒ Hash

Returns response data.

Parameters:

Returns:

  • (Hash)

    response data



17
18
19
# File 'lib/lucid/shopify/delete_webhook.rb', line 17

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