Sha256: c0f7dd3d205f2e8333277e761c33e2c955b57ff97216e40474186e6e077dfefb

Contents?: true

Size: 761 Bytes

Versions: 2

Compression:

Stored size: 761 Bytes

Contents

module Datarank
  class Client

    # Module containing methods for interacting with comments
    module Comments

      # Query interface for comments correlated to a topic
      #
      # @param slug [String] A topic's unique identifier slug
      # @option options [1..1000] :limit The number of items to return.
      # @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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
datarank-v2-1.0.0 lib/datarank/comments.rb
datarank-1.4.0 lib/datarank/comments.rb