Module: LucidShopify::Resource::Delete
- Defined in:
- lib/lucid_shopify/resource/delete.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
18 19 20 |
# File 'lib/lucid_shopify/resource/delete.rb', line 18 def self.included(base) base.include(Base) end |
Instance Method Details
#delete(credentials, id) ⇒ Object
26 27 28 29 30 |
# File 'lib/lucid_shopify/resource/delete.rb', line 26 def delete(credentials, id) client.delete(credentials, "#{resource}/#{id}").tap do logger.info("Deleted #{resource_singular} id=#{id}") end end |