Module: Redd::Models::Replyable
- Included in:
- Comment, PrivateMessage, Submission
- Defined in:
- lib/redd/models/replyable.rb
Overview
A model that can be commented on or replied to.
Instance Method Summary collapse
-
#reply(text) ⇒ Comment, PrivateMessage
Add a comment to a link, reply to a comment or reply to a message.
Instance Method Details
#reply(text) ⇒ Comment, PrivateMessage
Add a comment to a link, reply to a comment or reply to a message.
10 11 12 13 |
# 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 |