# Init `self` from a `json` object.
init from_json(api: GithubAPI, repo: Repo, json: JsonObject) do
- self.api = api
- self.repo = repo
+ init(api, repo)
self.json = json
end
end
super
end
+ # Issue id.
+ fun id: Int do return json["id"].as(Int)
+
+ # Set issue id.
+ fun id=(id: Int) do json["id"] = id
+
# Issue title.
fun title: String do return json["title"].as(String)
# Init `self` from a `json` object.
init from_json(api: GithubAPI, json: JsonObject) do
- self.api = api
- self.json = json
+ init(api, json)
end
# User these statistics are about.