Sha256: a53ccaa8a0e2d39cabe7e1e8a213b4dc6c9df498046d99321704f61cfb59f146

Contents?: true

Size: 292 Bytes

Versions: 24

Compression:

Stored size: 292 Bytes

Contents

require 'intercom/traits/api_resource'

module Intercom
  module ApiOperations
    module Delete

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

    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
intercom-2.0.3 lib/intercom/api_operations/delete.rb
intercom-2.0.2 lib/intercom/api_operations/delete.rb
intercom-2.0.1 lib/intercom/api_operations/delete.rb
intercom-2.0.0 lib/intercom/api_operations/delete.rb