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( = {}) raise ArgumentError, '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( = {}) raise ArgumentError, 'Required arguments :usergroup missing' if [:usergroup].nil? raise ArgumentError, 'Required arguments :users missing' if [:users].nil? post('usergroups.users.update', ) end |