Sha256: 252b7e0200e0875b67d73244aa069bd6d31703f49345ac780a591d4bc3a5d902

Contents?: true

Size: 505 Bytes

Versions: 5

Compression:

Stored size: 505 Bytes

Contents

module Datarank
  class Client

    # Module containing methods for interacting with topics
    module Topics

      # Return all topics
      #
      # @option options [1..1000] :limit The number of items to return.
      def all_topics options={}
        get '/topics', options
      end

      # Return single topic by slug
      #
      # @param slug [String] A topic's unique identifier slug
      def find_topic(slug, options={})
        get "/topics/#{slug}", options
      end

    end

  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
datarank-v2-1.0.0 lib/datarank/topics.rb
datarank-1.4.0 lib/datarank/topics.rb
datarank-1.3.0 lib/datarank/topics.rb
datarank-1.2.0 lib/datarank/topics.rb
datarank-1.1.4 lib/datarank/topics.rb