-
Notifications
You must be signed in to change notification settings - Fork 0
/
gists.cr
49 lines (46 loc) · 1.11 KB
/
gists.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
module Octokit
module Models
struct Gists
Octokit.rest_model(
id: String,
description: String,
public: Bool,
owner: User,
files: Hash(String, GistFile),
comments: Int32,
html_url: String,
git_pull_url: String,
git_push_url: String,
created_at: {type: Time, converter: Time::ISO8601Converter},
updated_at: {type: Time, converter: Time::ISO8601Converter},
node_id: String
)
end
struct GistFile
Octokit.rest_model(
size: Int32,
filename: String,
language: String,
type: String,
raw_url: String,
content: String
)
end
struct GistFork
Octokit.rest_model(
url: String,
user: User,
id: String,
created_at: {type: Time, converter: Time::ISO8601Converter},
updated_at: {type: Time, converter: Time::ISO8601Converter},
node_id: String
)
end
struct GistListOptions
Octokit.rest_model({
since: String,
# }.merge(ListOptions::FIELDS))
})
end
end
end