mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Generate some repetitive doc files
This commit is contained in:
@@ -21,36 +21,64 @@ import github.NamedUser
|
||||
|
||||
|
||||
class Event(github.GithubObject.BasicGithubObject):
|
||||
"""
|
||||
This class represents Events as returned for example by http://developer.github.com/v3/todo
|
||||
"""
|
||||
|
||||
@property
|
||||
def actor(self):
|
||||
"""
|
||||
:type: :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return self._NoneIfNotSet(self._actor)
|
||||
|
||||
@property
|
||||
def created_at(self):
|
||||
"""
|
||||
:type: datetime.datetime
|
||||
"""
|
||||
return self._NoneIfNotSet(self._created_at)
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
return self._NoneIfNotSet(self._id)
|
||||
|
||||
@property
|
||||
def org(self):
|
||||
"""
|
||||
:type: :class:`github.Organization.Organization`
|
||||
"""
|
||||
return self._NoneIfNotSet(self._org)
|
||||
|
||||
@property
|
||||
def payload(self):
|
||||
"""
|
||||
:type: dict
|
||||
"""
|
||||
return self._NoneIfNotSet(self._payload)
|
||||
|
||||
@property
|
||||
def public(self):
|
||||
"""
|
||||
:type: bool
|
||||
"""
|
||||
return self._NoneIfNotSet(self._public)
|
||||
|
||||
@property
|
||||
def repo(self):
|
||||
"""
|
||||
:type: :class:`github.Repository.Repository`
|
||||
"""
|
||||
return self._NoneIfNotSet(self._repo)
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
return self._NoneIfNotSet(self._type)
|
||||
|
||||
def _initAttributes(self):
|
||||
|
||||
Reference in New Issue
Block a user