mirror of
https://github.com/kennethreitz-archive/github2.git
synced 2026-06-05 15:40:19 +00:00
Change to new datatype style.
This commit is contained in:
+10
-3
@@ -1,9 +1,16 @@
|
||||
from github2.core import BaseData, GithubCommand
|
||||
from github2.core import BaseData, GithubCommand, Attribute
|
||||
|
||||
|
||||
class Repository(BaseData):
|
||||
attributes = ("description", "forks", "name", "watchers", "private",
|
||||
"url", "fork", "owner", "homepage")
|
||||
name = Attribute("Name of repository.")
|
||||
description = Attribute("Repository description.")
|
||||
forks = Attribute("Number of forks of this repository.")
|
||||
watchers = Attribute("Number of people watching this repository.")
|
||||
private = Attribute("If True, the repository is private.")
|
||||
url = Attribute("Canonical URL to this repository")
|
||||
fork = Attribute("If True, this is a fork of another repository.")
|
||||
owner = Attribute("Username of the user owning this repository.")
|
||||
homepage = Attribute("Homepage for this project.")
|
||||
|
||||
|
||||
class Repositories(GithubCommand):
|
||||
|
||||
Reference in New Issue
Block a user