Module: CoinbaseCommerceClient::APIResources::Base::Save
- Included in:
- Checkout
- Defined in:
- lib/coinbase_commerce_client/api_resources/base/save.rb
Instance Method Summary collapse
Instance Method Details
#save ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/coinbase_commerce_client/api_resources/base/save.rb', line 5 def save values = serialize_params(self) values.delete(:id) resp = @client.request(:put, "#{self.class::RESOURCE_PATH}/#{self[:id]}", self) initialize_from(resp.data) self end |