Sha256: 6f8982b5ce89484f5bb7b9d031950ddb727c6da68c4a82ed2b0d7bdea9e34911
Contents?: true
Size: 492 Bytes
Versions: 4
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true module Redd module Models # A model that can be commented on or replied to. module Replyable # 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. def reply(text) fullname = read_attribute(:name) client.model(:post, '/api/comment', text: text, thing_id: fullname).first end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
spinels-redd-0.9.0 | lib/redd/models/replyable.rb |
redd-0.9.0.pre.3 | lib/redd/models/replyable.rb |
redd-0.9.0.pre.2 | lib/redd/models/replyable.rb |
redd-0.9.0.pre.1 | lib/redd/models/replyable.rb |