Module: ShopifyClient::Resource::Update
- Defined in:
- lib/shopify-client/resource/update.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 |
# File 'lib/shopify-client/resource/update.rb', line 7 def self.included(base) base.include(Base) end |
Instance Method Details
#update(client, id, data) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/shopify-client/resource/update.rb', line 14 def update(client, id, data) client.put("#{resource_name}/#{id}", resource_name_singular => data) ShopifyClient.config.logger({ source: 'shopify-client', type: 'update', info: { resource: resource_name, id: id, }, }.to_json) nil end |