Class: Reddit::Data
- Inherits:
-
Object
- Object
- Reddit::Data
- Defined in:
- lib/reddit.rb
Class Method Summary collapse
Class Method Details
.read(section, options) ⇒ Object
20 21 22 23 24 |
# File 'lib/reddit.rb', line 20 def self.read(section, ) conf = Reddit::DefaultOptions.update reader = Reader.new section, conf[:page] reader.links end |
.subreddit_url(subreddit) ⇒ Object
26 27 28 |
# File 'lib/reddit.rb', line 26 def self.subreddit_url(subreddit) "http://reddit.com/r/#{subreddit}/.rss" end |