Module: BWAPI::Client::User::Notifications
- Included in:
- BWAPI::Client::User
- Defined in:
- lib/bwapi/client/user/notifications.rb
Overview
Notifications module for projects/notifications endpoints
Instance Method Summary collapse
-
#create_notification(opts = {}) ⇒ Hash
Post a new user notification.
-
#notifications(opts = {}) ⇒ Hash
Get the current user notifications.
-
#patch_notification(notification_id, opts = {}) ⇒ Hash
Patch a users existing notification.
-
#update_notification(notification_id, opts = {}) ⇒ Hash
Update users existing notification.
Instance Method Details
#create_notification(opts = {}) ⇒ Hash
Post a new user notification
15 16 17 |
# File 'lib/bwapi/client/user/notifications.rb', line 15 def create_notification(opts = {}) post 'user/notifications', opts end |
#notifications(opts = {}) ⇒ Hash
Get the current user notifications
25 26 27 |
# File 'lib/bwapi/client/user/notifications.rb', line 25 def notifications(opts = {}) get 'user/notifications', opts end |
#patch_notification(notification_id, opts = {}) ⇒ Hash
Patch a users existing notification
49 50 51 |
# File 'lib/bwapi/client/user/notifications.rb', line 49 def patch_notification(notification_id, opts = {}) patch "user/notifications/#{notification_id}", opts end |
#update_notification(notification_id, opts = {}) ⇒ Hash
Update users existing notification
39 40 41 |
# File 'lib/bwapi/client/user/notifications.rb', line 39 def update_notification(notification_id, opts = {}) put "user/notifications/#{notification_id}", opts end |