Module: Intercom::ApiOperations::Delete

Included in:
Service::Contact, Service::Subscription, Service::Tag, Service::User, Service::Visitor
Defined in:
lib/intercom/api_operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(object) ⇒ Object


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

def delete(object)
  collection_name = Utils.resource_class_to_collection_name(collection_class)
  @client.delete("/#{collection_name}/#{object.id}", {})
  object
end