Class: Tinybucket::Model::Team
- Defined in:
- lib/tinybucket/model/team.rb
Overview
Team
Instance Attribute Summary collapse
- #created_on ⇒ String
- #display_name ⇒ String
- #kind ⇒ String, NillClass
- #links ⇒ Hash
- #location ⇒ String, NillClass
- #type ⇒ String
- #username ⇒ String
- #uuid ⇒ String
- #website ⇒ String, NillClass
Instance Method Summary collapse
-
#followers(options = {}) ⇒ Tinybucket::Resource::Team::Followers
Get this team’s followers.
-
#following(options = {}) ⇒ Tinybucket::Resource::Team::Following
Get users which this team is following.
-
#members(options = {}) ⇒ Tinybucket::Resource::Team::Members
Get this team’s members.
-
#project(project_key, options = {}) ⇒ Tinybucket::Model::Project
Get the project.
-
#projects(options = {}) ⇒ Tinybucket::Resource::Team::Project
Get projects.
-
#repos(options = {}) ⇒ Tinybucket::Resource::Team::Repos
Get this team’s repositories.
Methods inherited from Base
#attributes, #attributes=, concern_included?, #initialize
Constructor Details
This class inherits a constructor from Tinybucket::Model::Base
Instance Attribute Details
#created_on ⇒ String
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#display_name ⇒ String
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#kind ⇒ String, NillClass
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#links ⇒ Hash
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#location ⇒ String, NillClass
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#type ⇒ String
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#username ⇒ String
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#uuid ⇒ String
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
#website ⇒ String, NillClass
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/tinybucket/model/team.rb', line 28 class Team < Base acceptable_attributes \ :username, :kind, :website, :display_name, :uuid, :links, :created_on, :location, :type # Get this team's members. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Members] def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end # Get this team's followers. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Followers] def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end # Get users which this team is following. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Following] def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end # Get projects # # @param options [Hash] # @return [Tinybucket::Resource::Team::Project] def projects( = {}) projects_resource() end # Get the project # # @param project_key [String] # @return [Tinybucket::Model::Project] def project(project_key, = {}) projects_resource().find(project_key, ) end # Get this team's repositories. # # @param options [Hash] # @return [Tinybucket::Resource::Team::Repos] def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end private def projects_resource( = {}) Tinybucket::Resource::Projects.new(username, ) end def team_api create_api('Team') end def load_model team_api.find(username) end end |
Instance Method Details
#followers(options = {}) ⇒ Tinybucket::Resource::Team::Followers
Get this team’s followers.
45 46 47 |
# File 'lib/tinybucket/model/team.rb', line 45 def followers( = {}) Tinybucket::Resource::Team::Followers.new(username, ) end |
#following(options = {}) ⇒ Tinybucket::Resource::Team::Following
Get users which this team is following.
53 54 55 |
# File 'lib/tinybucket/model/team.rb', line 53 def following( = {}) Tinybucket::Resource::Team::Following.new(username, ) end |
#members(options = {}) ⇒ Tinybucket::Resource::Team::Members
Get this team’s members.
37 38 39 |
# File 'lib/tinybucket/model/team.rb', line 37 def members( = {}) Tinybucket::Resource::Team::Members.new(username, ) end |
#project(project_key, options = {}) ⇒ Tinybucket::Model::Project
Get the project
69 70 71 |
# File 'lib/tinybucket/model/team.rb', line 69 def project(project_key, = {}) projects_resource().find(project_key, ) end |
#projects(options = {}) ⇒ Tinybucket::Resource::Team::Project
Get projects
61 62 63 |
# File 'lib/tinybucket/model/team.rb', line 61 def projects( = {}) projects_resource() end |
#repos(options = {}) ⇒ Tinybucket::Resource::Team::Repos
Get this team’s repositories.
77 78 79 |
# File 'lib/tinybucket/model/team.rb', line 77 def repos( = {}) Tinybucket::Resource::Team::Repos.new(username, ) end |