Welcome to mirror list, hosted at ThFree Co, Russian Federation.

team.rb « mattermost « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76e238a866ea1855c04210750473f0f22f2c2801 (plain)
1
2
3
4
5
6
7
8
9
10
module Mattermost
  class Team < Mattermost
    # After normalization this returns an array of hashes
    #
    # [{"id"=>"paf573pj9t81urupw3fanozeda", "display_name"=>"my team", <snip>}]
    def self.all
      @all_teams ||= get('/teams/all').parsed_response.values
    end
  end
end