Module: Slack::Web::Api::Endpoints::UsergroupsUsers
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/usergroups_users.rb
Instance Method Summary collapse
-
#usergroups_users_list(options = {}) ⇒ Object
List all users in a User Group.
-
#usergroups_users_update(options = {}) ⇒ Object
Update the list of users for a User Group.
Instance Method Details
#usergroups_users_list(options = {}) ⇒ Object
List all users in a User Group
20 21 22 23 |
# File 'lib/slack/web/api/endpoints/usergroups_users.rb', line 20 def usergroups_users_list( = {}) throw ArgumentError.new('Required arguments :usergroup missing') if [:usergroup].nil? post('usergroups.users.list', ) end |
#usergroups_users_update(options = {}) ⇒ Object
Update the list of users for a User Group
38 39 40 41 42 |
# File 'lib/slack/web/api/endpoints/usergroups_users.rb', line 38 def usergroups_users_update( = {}) throw ArgumentError.new('Required arguments :usergroup missing') if [:usergroup].nil? throw ArgumentError.new('Required arguments :users missing') if [:users].nil? post('usergroups.users.update', ) end |