module Redd::Objects::Thing::Inboxable

Things that can be sent to a user's inbox.

Public Instance Methods

mark_as_read() click to toggle source

Mark this thing as read.

# File lib/redd/objects/thing/inboxable.rb, line 7
def mark_as_read
  post('/api/read_message', id: fullname)
end
mark_as_unread() click to toggle source

Mark one or more messages as unread.

# File lib/redd/objects/thing/inboxable.rb, line 12
def mark_as_unread
  post('/api/unread_message', id: fullname)
end
reply(text) click to toggle source

Reply to the thing. @param text [String] The text to comment. @return [Objects::Comment, Objects::PrivateMessage] The reply.

# File lib/redd/objects/thing/inboxable.rb, line 19
def reply(text)
  client.add_comment(self, text)
end