Module: BWAPI::Client::User::Notifications
- Included in:
- BWAPI::Client::User
- Defined in:
- lib/bwapi/client/user/notifications.rb
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
29 30 31 |
# File 'lib/bwapi/client/user/notifications.rb', line 29 def delete_notification notification_id delete "user/notifications/#{notification_id}" end |
#notifications(opts = {}) ⇒ Hashie::Mash
Get the current user notifications
12 13 14 |
# File 'lib/bwapi/client/user/notifications.rb', line 12 def notifications opts={} get "user/notifications", opts end |
#update_notification(opts) ⇒ Hashie::Mash
Update users existing notifications
21 22 23 |
# File 'lib/bwapi/client/user/notifications.rb', line 21 def update_notification opts put "user/notifications", opts end |