Class: Squall::UserGroup
Overview
OnApp UserGroup
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary (collapse)
-
- (Object) create(options = {})
Create a user group.
-
- (Object) delete(id)
Delete a user group.
-
- (Object) edit(id, options = {})
Edit a user group.
-
- (Object) list
List all user groups.
Methods inherited from Base
#check_config, #default_params, #key_for_class, #request
Instance Method Details
- (Object) create(options = {})
Create a user group.
20 21 22 |
# File 'lib/squall/user_group.rb', line 20 def create( = {}) request(:post, "/user_groups.json", default_params()) end |
- (Object) delete(id)
Delete a user group.
39 40 41 |
# File 'lib/squall/user_group.rb', line 39 def delete(id) request(:delete, "/user_groups/#{id}.json") end |
- (Object) edit(id, options = {})
Edit a user group.
30 31 32 |
# File 'lib/squall/user_group.rb', line 30 def edit(id, = {}) request(:put, "/user_groups/#{id}.json", default_params()) end |
- (Object) list
List all user groups.
7 8 9 10 |
# File 'lib/squall/user_group.rb', line 7 def list response = request(:get, "/user_groups.json") response.collect { |user_group| user_group['user_group'] } end |