Module: Slack::Web::Api::Endpoints::Usergroups
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/usergroups.rb
Instance Method Summary collapse
-
#usergroups_create(options = {}) ⇒ Object
Create a User Group.
-
#usergroups_disable(options = {}) ⇒ Object
Disable an existing User Group.
-
#usergroups_enable(options = {}) ⇒ Object
Enable a User Group.
-
#usergroups_list(options = {}) ⇒ Object
List all User Groups for a team.
-
#usergroups_update(options = {}) ⇒ Object
Update an existing User Group.
Instance Method Details
#usergroups_create(options = {}) ⇒ Object
Create a User Group
23 24 25 26 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 23 def usergroups_create( = {}) throw ArgumentError.new('Required arguments :name missing') if [:name].nil? post('usergroups.create', ) end |
#usergroups_disable(options = {}) ⇒ Object
Disable an existing User Group
37 38 39 40 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 37 def usergroups_disable( = {}) throw ArgumentError.new('Required arguments :usergroup missing') if [:usergroup].nil? post('usergroups.disable', ) end |
#usergroups_enable(options = {}) ⇒ Object
Enable a User Group
51 52 53 54 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 51 def usergroups_enable( = {}) throw ArgumentError.new('Required arguments :usergroup missing') if [:usergroup].nil? post('usergroups.enable', ) end |
#usergroups_list(options = {}) ⇒ Object
List all User Groups for a team
67 68 69 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 67 def usergroups_list( = {}) post('usergroups.list', ) end |
#usergroups_update(options = {}) ⇒ Object
Update an existing User Group
88 89 90 91 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 88 def usergroups_update( = {}) throw ArgumentError.new('Required arguments :usergroup missing') if [:usergroup].nil? post('usergroups.update', ) end |