Module: BWAPI::Client::Admin::Clients::Users::Sharing

Included in:
BWAPI::Client::Admin::Clients::Users
Defined in:
lib/bwapi/client/admin/users/sharing.rb

Instance Method Summary collapse

Instance Method Details

#client_users_sharing(client_id, user_id) ⇒ Hashie::Mash Also known as: users_sharing

Get a list of project shares for user

Parameters:

  • client_id (Integer)

    Id of the client

  • user_id (Integer)

    Id of the user

Returns:

  • (Hashie::Mash)

    All shares for client user



13
14
15
# File 'lib/bwapi/client/admin/users/sharing.rb', line 13

def client_users_sharing client_id, user_id
  get "admin/client/#{client_id}/users/#{user_id}/sharing"
end

#update_client_users_sharing(client_id, user_id, opts) ⇒ Hashie::Mash Also known as: update_users_sharing

Update a list of project shares for user

Parameters:

  • client_id (Integer)

    Id of the client

  • user_id (Integer)

    Id of the user

  • opts (Hash)

    options Hash of parameters

Options Hash (opts):

  • ProjectShareDTO (Array)

    The shares of the user

Returns:

  • (Hashie::Mash)

    Updated shares for client user



25
26
27
# File 'lib/bwapi/client/admin/users/sharing.rb', line 25

def update_client_users_sharing client_id, user_id, opts
  get "admin/client/#{client_id}/users/#{user_id}/sharing", opts
end