Module: CoinbaseCommerceClient::APIResources::Base::Create

Included in:
Charge, Checkout
Defined in:
lib/coinbase_commerce_client/api_resources/base/create.rb

Instance Method Summary collapse

Instance Method Details

#create(params = {}) ⇒ Object



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

def create(params = {})
  response = @client.request(:post, "#{self::RESOURCE_PATH}", params)
  Util.convert_to_api_object(response.data, @client, self)
end