class Lucid::Shopify::DeleteWebhook

Public Class Methods

new(client: Container[:client]) click to toggle source

@param client [#delete]

# File lib/lucid/shopify/delete_webhook.rb, line 9
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 17
def call(credentials, id)
  @client.delete(credentials, "webhooks/#{id}")
end