Class Parent class
Reddit::Client::Link Reddit::Client::VotableThing

A Reddit post. Link objects are generated by either the get_link or get_links methods of Reddit::Client.

A description of Link's properties can be found here. The properties below are dumped from an actual Link object.

Constants

Constant Value
type t3

Methods

Method Description
comments Return list of Comment objects for that post.
delete Delete the post.
edit(text) Edit the post, if it is a self post.
get_comments Get comment replies to the post.
get_web_url Return a permalink for the post.
reply(text) Reply to post. Returns the fullname of the new comment.
hide Hide post.
unhide Unhide post.

Properties

Field Example
approved_by undef
author "earth-tone"
author_flair_css_class undef
author_flair_text undef
banned_by undef
clicked 0
created 1443968915
created_utc 1443965315
domain "i.imgur.com"
downs 0
edited 0
hidden 0
id "3ng7r5"
is_self 0
likes 1
link_flair_css_class undef
link_flair_text undef
media undef
media_embed {}
mod_reports []
name "t3_3ng7r5"
num_comments 1
num_reports 0
over_18 0
permalink "/r/test/comments/3ng7r5/test_link_post/"
saved 0
score 1
selftext ""
selftext_html undef
subreddit "test"
subreddit_id "t5_2qh23"
thumbnail "http://b.thumbs.redditmedia.com/3FnXPeQIsqkVSnNDNN3EhfQ-B6VBvmv2fJYjJWFtVHw.jpg"
title "test link post"
type "t3"
user_reports []
ups 1
url "http://i.imgur.com/zDIK3yv.png"