lib/github_cli/apis/follower.rb in github_cli-0.5.9 vs lib/github_cli/apis/follower.rb in github_cli-0.6.0

- old
+ new

@@ -3,36 +3,37 @@ module GithubCLI class Follower < API class << self - def all(user, params, format) - output format do - github_api.users.followers.list user, params + def all(user, params, options) + args = user ? [user, params] : [params] + output options do + github_api(options).users.followers.list *args end end - def following(user, params, format) - output format do - github_api.users.followers.following user, params + def following(user, params, options) + output options do + github_api(options).users.followers.following user, params end end - def follower(user, params, format) - output format do - github_api.users.followers.following? user, params + def follower(user, params, options) + output options do + github_api(options).users.followers.following? user, params end end - def follow(user, params, format) - output format do - github_api.users.followers.follow user, params + def follow(user, params, options) + output options do + github_api(options).users.followers.follow user, params end end - def unfollow(user, params, format) - output format do - github_api.users.followers.unfollow user, params + def unfollow(user, params, options) + output options do + github_api(options).users.followers.unfollow user, params end end end end # Follower