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.
26 27 28 29 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 26 def usergroups_create( = {}) raise ArgumentError, 'Required arguments :name missing' if [:name].nil? post('usergroups.create', ) end |
#usergroups_disable(options = {}) ⇒ Object
Disable an existing User Group.
42 43 44 45 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 42 def usergroups_disable( = {}) raise ArgumentError, 'Required arguments :usergroup missing' if [:usergroup].nil? post('usergroups.disable', ) end |
#usergroups_enable(options = {}) ⇒ Object
Enable a User Group.
58 59 60 61 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 58 def usergroups_enable( = {}) raise ArgumentError, 'Required arguments :usergroup missing' if [:usergroup].nil? post('usergroups.enable', ) end |
#usergroups_list(options = {}) ⇒ Object
List all User Groups for a team.
76 77 78 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 76 def usergroups_list( = {}) post('usergroups.list', ) end |
#usergroups_update(options = {}) ⇒ Object
Update an existing User Group.
99 100 101 102 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 99 def usergroups_update( = {}) raise ArgumentError, 'Required arguments :usergroup missing' if [:usergroup].nil? post('usergroups.update', ) end |