lib/datarank/comments.rb in datarank-1.3.0 vs lib/datarank/comments.rb in datarank-1.4.0

- old
+ new

@@ -11,9 +11,16 @@ # @option options - all query options available in API docs def comments_search(slug, options={}) get "/topics/#{slug}/comments", options end + # Query interface for top 20 comments correlated to a topic by datarank score + # + # @param slug [String] A topic's unique identifier slug + def comments_top(slug, options={}) + get "/topics/#{slug}/comments/top", options + end + end end end \ No newline at end of file