Module: Octobat::APIOperations::Delete

Included in:
Customer, Item
Defined in:
lib/octobat/api_operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(params = {}, opts = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/octobat/api_operations/delete.rb', line 4

def delete(params = {}, opts={})
  api_key, headers = Util.parse_opts(opts)
  
  response, api_key = Octobat.request(:delete, url, api_key || @api_key, params, headers)
  refresh_from(response, api_key)
end