Module: Alula::ApiOperations::Delete::InstanceMethods

Defined in:
lib/alula/api_operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/alula/api_operations/delete.rb', line 9

def delete
  # payload = {
  #   data: {
  #     id: id,
  #     attributes: as_patchable_json
  #   }
  # }

  response = Alula::Client.request(:delete, resource_url)

  return true if response.ok?

  handle_errors(response)
end