Sha256: eba245781b9040d40d8e3d47669faa7454203fbf1c762db0c2ae61b851b5e6a2
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
module DiscourseApi module API module Categories def categories(*args) response = get('/categories.json', args) response[:body]['category_list']['categories'] end def category_latest_topics(category_slug) response = get("/category/#{category_slug}/l/latest.json") response[:body]['topic_list']['topics'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse_api-0.2.4 | lib/discourse_api/api/categories.rb |