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
-
#delete_notification(notification_id) ⇒ Hashie::Mash
Delete a users existing notification.
-
#notifications(opts = {}) ⇒ Hashie::Mash
Get the current user notifications.
-
#update_notification(opts) ⇒ Hashie::Mash
Update users existing notifications.
Instance Method Details
#delete_notification(notification_id) ⇒ Hashie::Mash
Delete a users existing notification
30 31 32 |
# File 'lib/bwapi/client/user/notifications.rb', line 30 def delete_notification notification_id delete "user/notifications/#{notification_id}" end |
#notifications(opts = {}) ⇒ Hashie::Mash
Get the current user notifications
13 14 15 |
# File 'lib/bwapi/client/user/notifications.rb', line 13 def notifications opts={} get "user/notifications", opts end |
#update_notification(opts) ⇒ Hashie::Mash
Update users existing notifications
22 23 24 |
# File 'lib/bwapi/client/user/notifications.rb', line 22 def update_notification opts put "user/notifications", opts end |