class Github::Client::Activity::Watching
def watched(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/watching/#list-repositories-being-watched -
def watched(*args) arguments(args) params = arguments.params response = if (user_name = params.delete('user')) get_request("/users/#{user_name}/subscriptions", params) else get_request("/user/subscriptions", params) end return response unless block_given? response.each { |el| yield el } end