Method: Magento::Model.update
- Defined in:
- lib/magento/model.rb
.update(id, attributes) ⇒ Object
56 57 58 59 60 61 |
# File 'lib/magento/model.rb', line 56 def update(id, attributes) body = { entity_key => attributes } hash = request.put("#{api_resource}/#{id}", body).parse block_given? ? yield(hash) : build(hash) end |