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
This method is used to create a User Group.
-
#usergroups_disable(options = {}) ⇒ Object
This method disables an existing User Group.
-
#usergroups_enable(options = {}) ⇒ Object
This method enables a User Group which was previously disabled.
-
#usergroups_list(options = {}) ⇒ Object
This method returns a list of all User Groups in the team.
-
#usergroups_update(options = {}) ⇒ Object
This method updates the properties of an existing User Group.
Instance Method Details
#usergroups_create(options = {}) ⇒ Object
This method is used to 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
This method disables 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
This method enables a User Group which was previously disabled.
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
This method returns a list of all User Groups in the team. This can optionally include disabled User Groups.
67 68 69 |
# File 'lib/slack/web/api/endpoints/usergroups.rb', line 67 def usergroups_list( = {}) post('usergroups.list', ) end |
#usergroups_update(options = {}) ⇒ Object
This method updates the properties of 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 |