Sha256: 4b09aa25d23ea84f7b2b36473db087f59396f77662bc9755310ed7f5b525ceed

Contents?: true

Size: 308 Bytes

Versions: 3

Compression:

Stored size: 308 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coinbase_commerce_client-0.4.2 lib/coinbase_commerce_client/api_resources/base/cancel.rb
coinbase_commerce_client-0.3.0 lib/coinbase_commerce_client/api_resources/base/cancel.rb
coinbase_commerce_client-0.2.0 lib/coinbase_commerce_client/api_resources/base/cancel.rb