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 = {}) ⇒ Hashie::Mash
Update the current user.
-
#user ⇒ Hashie::Mash
Get the current user.
Methods included from Notifications
#delete_notification, #notifications, #update_notification
Instance Method Details
#api_role ⇒ String
Get users api role
45 46 47 |
# File 'lib/bwapi/client/user.rb', line 45 def api_role user.apiRole end |
#ui_role ⇒ String
Get users ui role
52 53 54 |
# File 'lib/bwapi/client/user.rb', line 52 def ui_role user.uiRole end |
#update_user(opts = {}) ⇒ Hashie::Mash
Update the current user
38 39 40 |
# File 'lib/bwapi/client/user.rb', line 38 def update_user(opts = {}) put 'user', opts end |
#user ⇒ Hashie::Mash
Get the current user
12 13 14 |
# File 'lib/bwapi/client/user.rb', line 12 def user get 'user' end |