aboutsummaryrefslogtreecommitdiffstats
path: root/github3/models/base.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-09 00:35:13 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-09 00:35:13 +0100
commited34830ab64837d16b2943887045a44f0760ee8e (patch)
treef91c1bebb8b11cccc5bab07dfb54ea5031923888 /github3/models/base.py
parentFix/update typo. avatar_url in User (diff)
downloadpython-github3-ed34830ab64837d16b2943887045a44f0760ee8e.tar.xz
python-github3-ed34830ab64837d16b2943887045a44f0760ee8e.zip
New design. Merge develop branch
Diffstat (limited to 'github3/models/base.py')
-rw-r--r--github3/models/base.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/github3/models/base.py b/github3/models/base.py
new file mode 100644
index 0000000..df0c82b
--- /dev/null
+++ b/github3/models/base.py
@@ -0,0 +1,19 @@
+"""
+github3.models
+~~~~~~~~~~~~~~
+
+This package provides the Github3 object model.
+"""
+
+class BaseResource(object):
+ """A BaseResource object."""
+
+ def __init__(self, attrs=None):
+ if attrs:
+ for attr, value in attrs.items():
+ setattr(self, attr, value)
+ super(BaseResource, self).__init__()
+
+ @classmethod
+ def idl(self):
+ raise NotImplementedError('Each model need subcass that method')