module Redd::Models::Inboxable
Things that can be sent to a user's inbox.
Public Instance Methods
block()
click to toggle source
Block the user that sent this item.
# File lib/redd/models/inboxable.rb, line 8 def block @client.post('/api/block', id: get_attribute(:name)) end
mark_as_read()
click to toggle source
Mark this thing as read.
# File lib/redd/models/inboxable.rb, line 13 def mark_as_read @client.post('/api/read_message', id: get_attribute(:name)) end
mark_as_unread()
click to toggle source
Mark one or more messages as unread.
# File lib/redd/models/inboxable.rb, line 18 def mark_as_unread @client.post('/api/unread_message', id: get_attribute(:name)) end