Class: GithubCLI::Watching
- Inherits:
-
API
- Object
- API
- GithubCLI::Watching
show all
- Defined in:
- lib/github_cli/apis/watching.rb
Class Method Summary
collapse
-
.list(user, repo, params, options) ⇒ Object
-
.start(user, repo, params, options) ⇒ Object
-
.stop(user, repo, params, options) ⇒ Object
-
.watched(params, options) ⇒ Object
-
.watching?(user, repo, params, options) ⇒ Boolean
Methods inherited from API
configure, github_api, output, set_basic_auth
Class Method Details
.list(user, repo, params, options) ⇒ Object
8
9
10
11
12
|
# File 'lib/github_cli/apis/watching.rb', line 8
def list(user, repo, params, options)
output options do
github_api(options).activity.watching.list user, repo, params
end
end
|
.start(user, repo, params, options) ⇒ Object
26
27
28
29
30
|
# File 'lib/github_cli/apis/watching.rb', line 26
def start(user, repo, params, options)
output options do
github_api(options).activity.watching.watch user, repo, params
end
end
|
.stop(user, repo, params, options) ⇒ Object
32
33
34
35
36
|
# File 'lib/github_cli/apis/watching.rb', line 32
def stop(user, repo, params, options)
output options do
github_api(options).activity.watching.unwatch user, repo, params
end
end
|
.watched(params, options) ⇒ Object
14
15
16
17
18
|
# File 'lib/github_cli/apis/watching.rb', line 14
def watched(params, options)
output options do
github_api(options).activity.watching.watched params
end
end
|
.watching?(user, repo, params, options) ⇒ Boolean
20
21
22
23
24
|
# File 'lib/github_cli/apis/watching.rb', line 20
def watching?(user, repo, params, options)
output options do
github_api(options).activity.watching.watching? user, repo, params
end
end
|