Module: BWAPI::Client::Admin::Clients::Users
- Includes:
- Sharing
- Included in:
- BWAPI::Client::Admin
- Defined in:
- lib/bwapi/client/admin/users.rb,
lib/bwapi/client/admin/users/sharing.rb
Overview
Users module for admin/users endpoints
Defined Under Namespace
Modules: Sharing
Instance Method Summary collapse
-
#client_users(client_id, opts = {}) ⇒ Hashie::Mash
Get all users for client.
-
#create_client_user(client_id, opts = {}) ⇒ Hashie::Mash
Create a new client user.
-
#get_client_user(client_id, user_id) ⇒ Hashie::Mash
Get a specific user in client.
-
#update_client_user(client_id, user_id, opts = {}) ⇒ Hashie::Mash
Update an existing client user.
Methods included from Sharing
#client_users_sharing, #update_client_users_sharing
Instance Method Details
#client_users(client_id, opts = {}) ⇒ Hashie::Mash
Get all users for client
17 18 19 |
# File 'lib/bwapi/client/admin/users.rb', line 17 def client_users client_id, opts={} get "admin/clients/#{client_id}/users", opts end |
#create_client_user(client_id, opts = {}) ⇒ Hashie::Mash
Create a new client user
53 54 55 |
# File 'lib/bwapi/client/admin/users.rb', line 53 def create_client_user client_id, opts={} post "admin/clients/#{client_id}/users", opts end |
#get_client_user(client_id, user_id) ⇒ Hashie::Mash
Get a specific user in client
26 27 28 |
# File 'lib/bwapi/client/admin/users.rb', line 26 def get_client_user client_id, user_id get "admin/clients/#{client_id}/users/#{user_id}" end |
#update_client_user(client_id, user_id, opts = {}) ⇒ Hashie::Mash
Update an existing client user
81 82 83 |
# File 'lib/bwapi/client/admin/users.rb', line 81 def update_client_user client_id, user_id, opts={} put "admin/clients/#{client_id}/users/#{user_id}", opts end |