Class: Lucid::Shopify::DeleteWebhook
- Inherits:
-
Object
- Object
- Lucid::Shopify::DeleteWebhook
- Defined in:
- lib/lucid/shopify/delete_webhook.rb
Instance Method Summary collapse
-
#call(credentials, id) ⇒ Hash
Response data.
-
#initialize(client: Container[:client]) ⇒ DeleteWebhook
constructor
A new instance of DeleteWebhook.
Constructor Details
#initialize(client: Container[:client]) ⇒ DeleteWebhook
Returns a new instance of DeleteWebhook.
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.
17 18 19 |
# File 'lib/lucid/shopify/delete_webhook.rb', line 17 def call(credentials, id) @client.delete(credentials, "webhooks/#{id}") end |