Sha256: dedb6a399fe8387a2968bfb648ae652e904ade9e4920642e0391bfc0f06a5385

Contents?: true

Size: 838 Bytes

Versions: 8

Compression:

Stored size: 838 Bytes

Contents

module Datarank
  class Client

    # Module containing methods for interacting with a topic's themes
    module Themes
      
      # Return themes assigned to a topic
      #
      # @param slug [String] A topic's unique identifier slug
      def themes slug
        get "/topics/#{slug}/themes"
      end

      # Return trend for a specific theme on a topic
      #
      # @param slug [String] A topic's unique identifier slug
      # @param theme_id [Integer] Unique ID of theme
      def themes_trend slug, theme_id
        get "/topics/#{slug}/themes/trend/#{theme_id}"
      end

      # Return table for correlation between all themes on a topic
      #
      # @param slug [String] A topic's unique identifier slug
      def themes_correlation slug
        get "/topics/#{slug}/themes/correlation"
      end

    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datarank-1.3.0 lib/datarank/themes.rb
datarank-1.2.0 lib/datarank/themes.rb
datarank-1.1.4 lib/datarank/themes.rb
datarank-1.1.3 lib/datarank/themes.rb
datarank-1.1.2 lib/datarank/themes.rb
datarank-1.1.1 lib/datarank/themes.rb
datarank-1.1.0 lib/datarank/themes.rb
datarank-1.0.0 lib/datarank/themes.rb