class Redd::Models::PrivateMessage

A private message

Public Instance Methods

delete() click to toggle source

Delete the message from the user's inbox.

# File lib/redd/models/private_message.rb, line 15
def delete
  @client.post('/api/del_msg', id: get_attribute(:name))
end
mute_author() click to toggle source

Mute the author of the message.

# File lib/redd/models/private_message.rb, line 20
def mute_author
  @client.post('/api/mute_message_author', id: get_attribute(:name))
end
unmute_author() click to toggle source

Unmute the author of the message.

# File lib/redd/models/private_message.rb, line 25
def unmute_author
  @client.post('/api/unmute_message_author', id: get_attribute(:name))
end

Private Instance Methods

default_loader() click to toggle source
# File lib/redd/models/private_message.rb, line 31
def default_loader
  # FIXME: This returns the entire conversation, not the specific message. Possible to search,
  #   because depth of replies is just one.
  {}
end