Sha256: 57be124e69e50efe67451aaf3ed017678c09fa8c7282a2b455e564aad25c4e89
Contents?: true
Size: 340 Bytes
Versions: 15
Compression:
Stored size: 340 Bytes
Contents
require 'intercom/utils' module Intercom module ApiOperations module Archive def archive(object) collection_name = Utils.resource_class_to_collection_name(collection_class) @client.delete("/#{collection_name}/#{object.id}", {}) object end alias_method 'delete', 'archive' end end end
Version data entries
15 entries across 15 versions & 1 rubygems