Class: GithubCLI::Follower
- Inherits:
-
API
- Object
- API
- GithubCLI::Follower
show all
- Defined in:
- lib/github_cli/apis/follower.rb
Class Method Summary
collapse
-
.all(user, params, options) ⇒ Object
-
.follow(user, params, options) ⇒ Object
-
.follower(user, params, options) ⇒ Object
-
.following(user, params, options) ⇒ Object
-
.unfollow(user, params, options) ⇒ Object
Methods inherited from API
configure, github_api, output, set_basic_auth
Class Method Details
.all(user, params, options) ⇒ Object
8
9
10
11
12
13
|
# File 'lib/github_cli/apis/follower.rb', line 8
def all(user, params, options)
args = user ? [user, params] : [params]
output options do
github_api(options).users.followers.list *args
end
end
|
.follow(user, params, options) ⇒ Object
27
28
29
30
31
|
# File 'lib/github_cli/apis/follower.rb', line 27
def follow(user, params, options)
output options do
github_api(options).users.followers.follow user, params
end
end
|
.follower(user, params, options) ⇒ Object
21
22
23
24
25
|
# File 'lib/github_cli/apis/follower.rb', line 21
def follower(user, params, options)
output options do
github_api(options).users.followers.following? user, params
end
end
|
.following(user, params, options) ⇒ Object
15
16
17
18
19
|
# File 'lib/github_cli/apis/follower.rb', line 15
def following(user, params, options)
output options do
github_api(options).users.followers.following user, params
end
end
|
.unfollow(user, params, options) ⇒ Object
33
34
35
36
37
|
# File 'lib/github_cli/apis/follower.rb', line 33
def unfollow(user, params, options)
output options do
github_api(options).users.followers.unfollow user, params
end
end
|