module Redd::Models::Replyable

A model that can be commented on or replied to.

Public Instance Methods

reply(text) click to toggle source

Add a comment to a link, reply to a comment or reply to a message. @param text [String] the text to comment @return [Comment, PrivateMessage] The created reply.

# File lib/redd/models/replyable.rb, line 10
def reply(text)
  fullname = get_attribute(:name)
  @client.model(:post, '/api/comment', text: text, thing_id: fullname).first
end