Module: BWAPI::Client::CommandCenter::Displays::Users

Includes:
Access
Included in:
BWAPI::Client::CommandCenter::Displays
Defined in:
lib/bwapi/client/command_center/displays/users.rb,
lib/bwapi/client/command_center/displays/users/access.rb

Overview

Users module for commandcenter/displays/users endpoints

Defined Under Namespace

Modules: Access

Instance Method Summary collapse

Methods included from Access

#grant_display_user_access_level, #update_display_user_access_level

Instance Method Details

#delete_display_user_access_levels(display_id, user_id) ⇒ Hashie::Mash

Revoke display access levels for existing user

Parameters:

  • display_id (Integer) —

    the display id

  • user_id (Integer) —

    the user id

Returns:

  • (Hashie::Mash) —

    Specific display and user access level



48
49
50
# File 'lib/bwapi/client/command_center/displays/users.rb', line 48

def delete_display_user_access_levels display_id, user_id
  delete "commandcenter/displays/#{display_id}/users/#{user_id}"
end

#displays_access_levels ⇒ Hashie::Mash

Get all users display access levels

Returns:

  • (Hashie::Mash) —

    Display access levels



13
14
15
# File 'lib/bwapi/client/command_center/displays/users.rb', line 13

def displays_access_levels
  get "commandcenter/displays/users"
end

#get_display_user_access_levels(display_id, user_id) ⇒ Hashie::Mash

Get display access levels for existing user

Parameters:

  • display_id (Integer) —

    the display id

  • user_id (Integer) —

    the user id

Returns:

  • (Hashie::Mash) —

    Specific display and user access level



39
40
41
# File 'lib/bwapi/client/command_center/displays/users.rb', line 39

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) ⇒ Hashie::Mash

Get displays access levels for users

Parameters:

  • display_id (Integer) —

    the display id

Returns:

  • (Hashie::Mash) —

    Specific display user access levels



30
31
32
# File 'lib/bwapi/client/command_center/displays/users.rb', line 30

def get_display_users_access_levels display_id
  get "commandcenter/displays/#{display_id}/users"
end

#get_displays_user_access_levels(display_id, user_id) ⇒ Hashie::Mash

Get a users display access levels for displays

Parameters:

  • display_id (Integer) —

    the display id

  • user_id (Integer) —

    the user id

Returns:

  • (Hashie::Mash) —

    Specific display user access levels



22
23
24
# File 'lib/bwapi/client/command_center/displays/users.rb', line 22

def get_displays_user_access_levels display_id, user_id
  get "commandcenter/displays/users/#{user_id}"
end