Class: Tinybucket::Api::TeamApi
- Includes:
- Helper::TeamHelper
- Defined in:
- lib/tinybucket/api/team_api.rb
Overview
Team Api client
Constant Summary
Constants included from Connection
Connection::DEFAULT_USER_AGENT
Instance Method Summary collapse
-
#find(name, options = {}) ⇒ Tinybucket::Model::Team
Send ‘GET the team profile’ request.
-
#followers(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET the list of followers’ request.
-
#following(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET a lisf of accounts the team is following’ request.
-
#list(role_name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET teams’ request.
-
#members(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET the team members’ request.
-
#repos(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET the team’s repositories’ request.
Methods included from Connection
#caching?, #clear_cache, #connection
Instance Method Details
#find(name, options = {}) ⇒ Tinybucket::Model::Team
Send ‘GET the team profile’ request
30 31 32 33 34 35 36 |
# File 'lib/tinybucket/api/team_api.rb', line 30 def find(name, = {}) get_path( path_to_find(name), , get_parser(:object, Tinybucket::Model::Team) ) end |
#followers(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET the list of followers’ request
56 57 58 59 60 61 62 |
# File 'lib/tinybucket/api/team_api.rb', line 56 def followers(name, = {}) get_path( path_to_followers(name), , get_parser(:collection, Tinybucket::Model::Team) ) end |
#following(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET a lisf of accounts the team is following’ request
69 70 71 72 73 74 75 |
# File 'lib/tinybucket/api/team_api.rb', line 69 def following(name, = {}) get_path( path_to_following(name), , get_parser(:collection, Tinybucket::Model::Team) ) end |
#list(role_name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET teams’ request
17 18 19 20 21 22 23 |
# File 'lib/tinybucket/api/team_api.rb', line 17 def list(role_name, = {}) get_path( path_to_list, { role: role_name }.merge(), get_parser(:collection, Tinybucket::Model::Team) ) end |
#members(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET the team members’ request
43 44 45 46 47 48 49 |
# File 'lib/tinybucket/api/team_api.rb', line 43 def members(name, = {}) get_path( path_to_members(name), , get_parser(:collection, Tinybucket::Model::Team) ) end |
#repos(name, options = {}) ⇒ Tinybucket::Model::Page
Send ‘GET the team’s repositories’ request
82 83 84 85 86 87 88 |
# File 'lib/tinybucket/api/team_api.rb', line 82 def repos(name, = {}) get_path( path_to_repos(name), , get_parser(:collection, Tinybucket::Model::Repository) ) end |