Sha256: 11040e359c0a98049a0a956242f0d8f1243ba97e4be24a145a64d2487e6c21ed

Contents?: true

Size: 287 Bytes

Versions: 8

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

require 'intercom/utils'

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

      alias_method 'delete', 'archive'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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