Description

Class Parent class
Reddit::Client::SubReddit Reddit::Client::Thing

Represents a subreddit.

A description of SubReddit's properties can be found here. Below is example data dumped from an actual SubReddit object.

Methods

submit_link

submit_link ( title => $title, url => $url, [ inbox_replies => 1 ] )

Submit a link to the subreddit. Returns the fullname of the new post. If inbox_replies is set and is false, disable inbox replies for that post.

submit_text

submit_text ( title => $title, text => $text, [ inbox_replies => 1 ] )

Submit a text post to the subreddit. Returns the fullname of the new post. If inbox_replies is set and is false, disable inbox replies for that post.

Properties

Field Example
created 1201237888
created_utc 1201237888
description "This is a place to test things."
display_name "test"
header_img undef
header_size undef
header_title undef
id "2qh23"
name "t5_2qh23"
over18 0
public_description ""
subscribers 1069
title "Testing"
url "/r/test/"