Module: CoinbaseCommerce::APIResources::Base::Delete

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

Overview

delete opertaions mixin

Instance Method Summary collapse

Instance Method Details

#deleteObject



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

def delete
  response = @client.request(:delete, "#{self.class::RESOURCE_PATH}/#{self[:id]}")
  initialize_from(response.data)
  self
end