diff options
| author | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-12-13 19:52:41 +0100 |
|---|---|---|
| committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-12-16 12:21:09 +0100 |
| commit | 87d160634dfdaacd0dc382c26932786382d1be34 (patch) | |
| tree | 3eb381dd13f1ebd0acdf6c5364f9c2639e057b26 /lib/mattermost/team.rb | |
| parent | dd385c7c3d3046da18c6c251bce25afab1129662 (diff) | |
| download | gitlab-ce-87d160634dfdaacd0dc382c26932786382d1be34.tar.gz | |
Base work for auto config MM slash commands
Diffstat (limited to 'lib/mattermost/team.rb')
| -rw-r--r-- | lib/mattermost/team.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/mattermost/team.rb b/lib/mattermost/team.rb new file mode 100644 index 00000000000..76e238a866e --- /dev/null +++ b/lib/mattermost/team.rb @@ -0,0 +1,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 |
