mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 19:31:10 +00:00
Generate some repetitive doc files
This commit is contained in:
@@ -17,24 +17,43 @@ import github.GithubObject
|
||||
|
||||
|
||||
class GistFile(github.GithubObject.BasicGithubObject):
|
||||
"""
|
||||
This class represents GistFiles as returned for example by http://developer.github.com/v3/todo
|
||||
"""
|
||||
|
||||
@property
|
||||
def content(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
return self._NoneIfNotSet(self._content)
|
||||
|
||||
@property
|
||||
def filename(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
return self._NoneIfNotSet(self._filename)
|
||||
|
||||
@property
|
||||
def language(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
return self._NoneIfNotSet(self._language)
|
||||
|
||||
@property
|
||||
def raw_url(self):
|
||||
"""
|
||||
:type: string
|
||||
"""
|
||||
return self._NoneIfNotSet(self._raw_url)
|
||||
|
||||
@property
|
||||
def size(self):
|
||||
"""
|
||||
:type: integer
|
||||
"""
|
||||
return self._NoneIfNotSet(self._size)
|
||||
|
||||
def _initAttributes(self):
|
||||
|
||||
Reference in New Issue
Block a user