blob: df0c82bceca421b7be86f9514f20bf8a6e534a4e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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')
|