Sha256: a01e8d8abc5e54a1d9b05287886fcd8776dba7fdccc7c2243c9b326a450845c1
Contents?: true
Size: 486 Bytes
Versions: 7
Compression:
Stored size: 486 Bytes
Contents
module Redd module Client class Unauthenticated module Wiki def get_wikipages(subreddit = nil) path = "/wiki/pages.json" path.prepend("/r/#{subreddit}") if subreddit get(path)[:data] end def wikipage(page, subreddit = nil, params = {}) path = "/wiki/#{page}.json" path.prepend("/r/#{subreddit}") if subreddit object_from_response :get, path, params end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems