Sha256: 75badecba33f5114d9fcefa61145a82c24f2bc2743dda364e109b025a45561d6

Contents?: true

Size: 285 Bytes

Versions: 8

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

require 'intercom/utils'

module Intercom
  module ApiOperations
    module Delete
      def delete(object)
        @client.delete("/#{collection_name}/#{object.id}", {})
        object
      end

      alias_method 'archive', 'delete'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
intercom-4.2.1 lib/intercom/api_operations/delete.rb
intercom-4.2.0 lib/intercom/api_operations/delete.rb
intercom-4.1.3 lib/intercom/api_operations/delete.rb
intercom-4.1.2 lib/intercom/api_operations/delete.rb
intercom-4.1.1 lib/intercom/api_operations/delete.rb
intercom-4.1.0 lib/intercom/api_operations/delete.rb
intercom-4.0.1 lib/intercom/api_operations/delete.rb
intercom-4.0.0 lib/intercom/api_operations/delete.rb