class Redd::Objects::PrivateMessage

The model for private messages

Public Instance Methods

block_sender!() click to toggle source

Block the sender of the message from sending any more.

# File lib/redd/objects/private_message.rb, line 13
def block_sender!
  post('/api/block', id: fullname)
end
mark_as_read() click to toggle source

Mark the message as read.

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

Mark the message as unread and add orangered to account.

# File lib/redd/objects/private_message.rb, line 23
def mark_as_unread
  post('/api/unread_message', id: fullname)
end