Class: GithubCLI::Follower
- Inherits:
-
API
- Object
- API
- GithubCLI::Follower
show all
- Defined in:
- lib/github_cli/apis/follower.rb
Constant Summary
Constants inherited
from API
API::ENDPOINT
Class Method Summary
collapse
-
.all(user, params, format) ⇒ Object
-
.follow(user, params, format) ⇒ Object
-
.follower(user, params, format) ⇒ Object
-
.following(user, params, format) ⇒ Object
-
.unfollow(user, params, format) ⇒ Object
Methods inherited from API
configure_api, github_api, output
Class Method Details
.all(user, params, format) ⇒ Object
8
9
10
11
12
|
# File 'lib/github_cli/apis/follower.rb', line 8
def all(user, params, format)
output format do
github_api.users.followers.list user, params
end
end
|
.follow(user, params, format) ⇒ Object
26
27
28
29
30
|
# File 'lib/github_cli/apis/follower.rb', line 26
def follow(user, params, format)
output format do
github_api.users.followers.follow user, params
end
end
|
.follower(user, params, format) ⇒ Object
20
21
22
23
24
|
# File 'lib/github_cli/apis/follower.rb', line 20
def follower(user, params, format)
output format do
github_api.users.followers.following? user, params
end
end
|
.following(user, params, format) ⇒ Object
14
15
16
17
18
|
# File 'lib/github_cli/apis/follower.rb', line 14
def following(user, params, format)
output format do
github_api.users.followers.following user, params
end
end
|
.unfollow(user, params, format) ⇒ Object
32
33
34
35
36
|
# File 'lib/github_cli/apis/follower.rb', line 32
def unfollow(user, params, format)
output format do
github_api.users.followers.unfollow user, params
end
end
|