Module: Redd::Client::Unauthenticated::Moderation
- Included in:
- Redd::Client::Unauthenticated
- Defined in:
- lib/redd/client/unauthenticated/moderation.rb
Instance Method Summary collapse
Instance Method Details
#stylesheet(subreddit = nil) ⇒ Object
12 13 14 |
# File 'lib/redd/client/unauthenticated/moderation.rb', line 12 def stylesheet(subreddit = nil) get stylesheet_url(subreddit) end |
#stylesheet_url(subreddit = nil) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/redd/client/unauthenticated/moderation.rb', line 5 def stylesheet_url(subreddit = nil) path = "/stylesheet" path = path.prepend("/r/#{subreddit}") if subreddit get(path).headers[:location] end |