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
cogniteev-intercom-2.5.4 lib/intercom/api_operations/delete.rb
intercom-2.5.4 lib/intercom/api_operations/delete.rb
intercom-2.4.4 lib/intercom/api_operations/delete.rb
intercom-2.4.3 lib/intercom/api_operations/delete.rb
intercom-2.4.2 lib/intercom/api_operations/delete.rb
intercom-2.4.1 lib/intercom/api_operations/delete.rb
intercom-2.4.0 lib/intercom/api_operations/delete.rb
intercom-2.3.0 lib/intercom/api_operations/delete.rb
intercom-2.2.4 lib/intercom/api_operations/delete.rb
intercom-2.2.3 lib/intercom/api_operations/delete.rb
intercom-2.2.2 lib/intercom/api_operations/delete.rb
intercom-2.2.1 lib/intercom/api_operations/delete.rb
intercom-2.2.0 lib/intercom/api_operations/delete.rb
intercom-2.1.6 lib/intercom/api_operations/delete.rb
intercom-2.1.5 lib/intercom/api_operations/delete.rb
intercom-2.1.4 lib/intercom/api_operations/delete.rb
intercom-2.1.3 lib/intercom/api_operations/delete.rb
intercom-2.1.2 lib/intercom/api_operations/delete.rb
intercom-2.1.1 lib/intercom/api_operations/delete.rb
intercom-2.1.0 lib/intercom/api_operations/delete.rb