class Github::Activity::Watching
def watched(*args)
github.activity.watching.watched
github = Github.new :oauth_token => '...'
= Examples
List repos being watched by the authenticated user
github.activity.watching.watched :user => 'user-name'
github = Github.new
= Examples
List repos being watched by a user
def watched(*args) params = args.extract_options! normalize! 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