lib/tessa/asset.rb in tessa-0.1.2 vs lib/tessa/asset.rb in tessa-0.1.3
- old
+ new
@@ -17,9 +17,13 @@
def cancel!(connection: Tessa.config.connection)
Asset.new_from_response connection.patch("/assets/#{id}/cancelled")
end
+ def delete!(connection: Tessa.config.connection)
+ Asset.new_from_response connection.delete("/assets/#{id}")
+ end
+
def self.find(*ids,
connection: Tessa.config.connection)
new_from_response connection.get("/assets/#{ids.join(",")}")
end
end