Module: Datarank::Client::Comments
- Included in:
- Datarank::Client
- Defined in:
- lib/datarank/comments.rb
Overview
Module containing methods for interacting with comments
Instance Method Summary collapse
-
#comments_search(slug, options = {}) ⇒ Object
Query interface for comments correlated to a topic.
-
#comments_top(slug, options = {}) ⇒ Object
Query interface for top 20 comments correlated to a topic by datarank score.
Instance Method Details
#comments_search(slug, options = {}) ⇒ Object
Query interface for comments correlated to a topic
12 13 14 |
# File 'lib/datarank/comments.rb', line 12 def comments_search(slug, ={}) get "/topics/#{slug}/comments", end |
#comments_top(slug, options = {}) ⇒ Object
Query interface for top 20 comments correlated to a topic by datarank score
19 20 21 |
# File 'lib/datarank/comments.rb', line 19 def comments_top(slug, ={}) get "/topics/#{slug}/comments/top", end |