Module: BWAPI::Client::User
- Includes:
- Notifications
- Included in:
- BWAPI::Client
- Defined in:
- lib/bwapi/client/user.rb,
lib/bwapi/client/user/notifications.rb
Overview
User module for user endpoints and helper methods
Defined Under Namespace
Modules: Notifications
Instance Method Summary collapse
-
#api_role ⇒ String
Get users api role.
-
#ui_role ⇒ String
Get users ui role.
-
#update_user(opts = {}) ⇒ Hash
Update the current user.
-
#user ⇒ Hash
Get the current user.
Methods included from Notifications
#create_notification, #notifications, #patch_notification, #update_notification
Instance Method Details
#api_role ⇒ String
Get users api role
43 44 45 |
# File 'lib/bwapi/client/user.rb', line 43 def api_role user.apiRole end |
#ui_role ⇒ String
Get users ui role
50 51 52 |
# File 'lib/bwapi/client/user.rb', line 50 def ui_role user.uiRole end |
#update_user(opts = {}) ⇒ Hash
Update the current user
36 37 38 |
# File 'lib/bwapi/client/user.rb', line 36 def update_user(opts = {}) put 'user', opts end |
#user ⇒ Hash
Get the current user
10 11 12 |
# File 'lib/bwapi/client/user.rb', line 10 def user get 'user' end |