Commit 93b64620 authored by Aaron1011's avatar Aaron1011
Browse files

Merge pull request #252 from inactivist/add-model-repr

Basic Model __repr__ implementation (issue #251)
parents a46f69cc 298b05ec
......@@ -58,6 +58,10 @@ class Model(object):
results.append(cls.parse(api, obj))
return results
def __repr__(self):
state = ['%s=%s' % (k, repr(v)) for (k,v) in vars(self).items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(state))
class Status(Model):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment