Module: CoinbaseCommerce::APIResources::Base::Create

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

Overview

create operations mixin

Instance Method Summary collapse

Instance Method Details

#create(params = {}) ⇒ Object



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

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