Module: Intercom::ApiOperations::Delete

Included in:
Subscription, User
Defined in:
lib/intercom/api_operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject



7
8
9
10
11
# File 'lib/intercom/api_operations/delete.rb', line 7

def delete
  collection_name = Utils.resource_class_to_collection_name(self.class)
  Intercom.delete("/#{collection_name}/#{id}", {})
  self
end