data = client.put(self.endpoint + ('/%s' % self.id),
# XXX: This is pretty dirty. We'll see how it works out.
- self = self.__class__(**data)
+ self = self.__class__(**data)
def __class_delete(cls, id, client):
"""Deletes an object identified by `id`"""
delete = classmethod(__class_delete)
- def __instance_delete(self,
+ def __instance_delete(self, ):
# XXX: may need to change to self.__class__.delete(self.id, client)
return self.__class_delete(self.id, client)