Class: GithubCLI::Notification
- Inherits:
-
API
- Object
- API
- GithubCLI::Notification
show all
- Defined in:
- lib/github_cli/apis/notification.rb
Class Method Summary
collapse
-
.all(params, options) ⇒ Object
-
.create(id, params, options) ⇒ Object
-
.delete(id, params, options) ⇒ Object
-
.get(id, params, options) ⇒ Object
-
.mark(params, options) ⇒ Object
-
.subscribed?(id, params, options) ⇒ Boolean
Methods inherited from API
configure, github_api, output, set_basic_auth
Class Method Details
.all(params, options) ⇒ Object
8
9
10
11
12
|
# File 'lib/github_cli/apis/notification.rb', line 8
def all(params, options)
output options do
github_api(options).activity.notifications.list params
end
end
|
.create(id, params, options) ⇒ Object
32
33
34
35
36
|
# File 'lib/github_cli/apis/notification.rb', line 32
def create(id, params, options)
output options do
github_api(options).activity.notifications.create id, params
end
end
|
.delete(id, params, options) ⇒ Object
38
39
40
41
42
|
# File 'lib/github_cli/apis/notification.rb', line 38
def delete(id, params, options)
output options do
github_api(options).activity.notifications.delete id, params
end
end
|
.get(id, params, options) ⇒ Object
14
15
16
17
18
|
# File 'lib/github_cli/apis/notification.rb', line 14
def get(id, params, options)
output options do
github_api(options).activity.notifications.get id, params
end
end
|
.mark(params, options) ⇒ Object
20
21
22
23
24
|
# File 'lib/github_cli/apis/notification.rb', line 20
def mark(params, options)
output options do
github_api(options).activity.notifications.mark params
end
end
|
.subscribed?(id, params, options) ⇒ Boolean
26
27
28
29
30
|
# File 'lib/github_cli/apis/notification.rb', line 26
def subscribed?(id, params, options)
output options do
github_api(options).activity.notifications.subscribed? id, params
end
end
|