diff options
Diffstat (limited to 'gitlab/base.py')
-rw-r--r-- | gitlab/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/base.py b/gitlab/base.py index df25a36..a9521eb 100644 --- a/gitlab/base.py +++ b/gitlab/base.py @@ -607,6 +607,13 @@ class RESTObject(object): return None return getattr(self, self._id_attr) + @property + def attributes(self): + d = self.__dict__['_updated_attrs'].copy() + d.update(self.__dict__['_attrs']) + d.update(self.__dict__['_parent_attrs']) + return d + class RESTObjectList(object): """Generator object representing a list of RESTObject's. |