class Attio::Comment
def destroy(**opts)
def destroy(**opts) raise InvalidRequestError, "Cannot destroy a comment without an ID" unless persisted? comment_id = extract_comment_id self.class.send(:execute_request, :DELETE, "#{self.class.resource_path}/#{comment_id}", {}, opts) @attributes.clear @changed_attributes.clear @id = nil true end