Module: CoinbaseCommerceClient::APIResources::Base::Cancel

Included in:
Charge
Defined in:
lib/coinbase_commerce_client/api_resources/base/cancel.rb

Instance Method Summary collapse

Instance Method Details

#cancelObject



5
6
7
8
9
# File 'lib/coinbase_commerce_client/api_resources/base/cancel.rb', line 5

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