class DirectMessage(Model):
def destroy(self):
- return self._api.destroy_direct_message(id=self.id)
+ return self._api.destroy_direct_message(self.id)
class Friendship(Model):
class SavedSearch(Model):
- pass
+ def destroy(self):
+ return self._api.destroy_saved_search(self.id)
class SearchResult(Model):
class Retweet(Model):
- pass
+ def destroy(self):
+ return self._api.destroy_status(self.id)
class List(Model):
- pass
+ def destroy(self):
+ return self._api.destroy_list(self.slug)
# link up default model implementations.
models = {