class MagicBell::UserNotification

Public Class Methods

path() click to toggle source
# File lib/magicbell/api_resources/user_notification.rb, line 4
def path
  "/notifications"
end

Public Instance Methods

mark_as_read() click to toggle source
# File lib/magicbell/api_resources/user_notification.rb, line 13
def mark_as_read
  UserNotificationRead.new(@client, "user_notification" => self).create
end
mark_as_unread() click to toggle source
# File lib/magicbell/api_resources/user_notification.rb, line 17
def mark_as_unread
  UserNotificationUnread.new(@client, "user_notification" => self).create
end
path() click to toggle source
# File lib/magicbell/api_resources/user_notification.rb, line 9
def path
  "/notifications/#{id}"
end