module BWAPI::Client::CommandCenter::Displays::Users

Users module for commandcenter/displays/users endpoints

Public Instance Methods

delete_display_user_access_levels(display_id, user_id) click to toggle source

Revoke display access levels for existing user

@param [Integer] display_id the display id @param [Integer] user_id the user id @return [Hash] Specific display and user access level

# File lib/bwapi/client/command_center/displays/users.rb, line 46
def delete_display_user_access_levels(display_id, user_id)
  delete "commandcenter/displays/#{display_id}/users/#{user_id}"
end
displays_access_levels() click to toggle source

Get all users display access levels

@return [Hash] Display access levels

# File lib/bwapi/client/command_center/displays/users.rb, line 12
def displays_access_levels
  get 'commandcenter/displays/users'
end
get_display_user_access_levels(display_id, user_id) click to toggle source

Get display access levels for existing user

@param [Integer] display_id the display id @param [Integer] user_id the user id @return [Hash] Specific display and user access level

# File lib/bwapi/client/command_center/displays/users.rb, line 37
def get_display_user_access_levels(display_id, user_id)
  get "commandcenter/displays/#{display_id}/users/#{user_id}"
end
get_display_users_access_levels(display_id) click to toggle source

Get displays access levels for users

@param [Integer] display_id the display id @return [Hash] Specific display user access levels

# File lib/bwapi/client/command_center/displays/users.rb, line 28
def get_display_users_access_levels(display_id)
  get "commandcenter/displays/#{display_id}/users"
end
get_displays_user_access_levels(user_id) click to toggle source

Get a users display access levels for displays

@param [Integer] user_id the user id @return [Hash] Specific display user access levels

# File lib/bwapi/client/command_center/displays/users.rb, line 20
def get_displays_user_access_levels(user_id)
  get "commandcenter/displays/users/#{user_id}"
end