Module: CoinbaseCommerce::APIResources::Base::Update

Included in:
Checkout
Defined in:
lib/coinbase_commerce/api_resources/base/update.rb

Overview

update operations mixin

Instance Method Summary collapse

Instance Method Details

#modify(id, params = {}) ⇒ Object



8
9
10
11
# File 'lib/coinbase_commerce/api_resources/base/update.rb', line 8

def modify(id, params = {})
  resp = @client.request(:put, "#{self::RESOURCE_PATH}/#{id}", params)
  Util.convert_to_api_object(resp.data, @client, self)
end