Sha256: 8a70cd68ce1f4c01d4d56ddb7b2d770f346a7371c75c7e5fc6659a4f82a3ec6c
Contents?: true
Size: 1.14 KB
Versions: 6
Compression:
Stored size: 1.14 KB
Contents
# encoding: utf-8 module BitBucket class Repos::Following < API # List repo followers # # = Examples # bitbucket = BitBucket.new :user => 'user-name', :repo => 'repo-name' # bitbucket.repos.following.followers # bitbucket.repos.following.followers { |watcher| ... } # def followers(user_name, repo_name, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? normalize! params response = get_request("/1.0/repositories/#{user}/#{repo.downcase}/followers/", params) return response unless block_given? response.each { |el| yield el } end # List repos being followed by the authenticated user # # = Examples # bitbucket = BitBucket.new :oauth_token => '...', :oauth_secret => '...' # bitbucket.repos.following.followed # def followed(*args) params = args.extract_options! normalize! params response = get_request("/1.0/user/follows", params) return response unless block_given? response.each { |el| yield el } end end # Repos::Watching end # BitBucket
Version data entries
6 entries across 6 versions & 3 rubygems