Sha256: f52cc395828b0305edcd76d2775340a299163064928c18cc3b10f53cc376bbd3

Contents?: true

Size: 298 Bytes

Versions: 18

Compression:

Stored size: 298 Bytes

Contents

require 'intercom/utils'

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
intercom-3.6.2 lib/intercom/api_operations/delete.rb
intercom-3.6.1 lib/intercom/api_operations/delete.rb
intercom-3.6.0 lib/intercom/api_operations/delete.rb
intercom-3.5.26 lib/intercom/api_operations/delete.rb
intercom-3.5.25 lib/intercom/api_operations/delete.rb
intercom-3.5.24 lib/intercom/api_operations/delete.rb
intercom-3.5.23 lib/intercom/api_operations/delete.rb
intercom-3.5.22 lib/intercom/api_operations/delete.rb
intercom-3.5.21 lib/intercom/api_operations/delete.rb
intercom-3.5.20 lib/intercom/api_operations/delete.rb
intercom-3.5.19 lib/intercom/api_operations/delete.rb
intercom-3.5.17 lib/intercom/api_operations/delete.rb
intercom-3.5.16 lib/intercom/api_operations/delete.rb
intercom-3.5.15 lib/intercom/api_operations/delete.rb
intercom-3.5.14 lib/intercom/api_operations/delete.rb
intercom-3.5.12 lib/intercom/api_operations/delete.rb
intercom-3.5.11 lib/intercom/api_operations/delete.rb
intercom-3.5.10 lib/intercom/api_operations/delete.rb