Sha256: 78848ae385a961354dd66e2de3b574a71dabfe6dbe2ef7fa106110057b32e1e8

Contents?: true

Size: 635 Bytes

Versions: 9

Compression:

Stored size: 635 Bytes

Contents

module Datarank
  class Client

    # Module containing methods for interacting with datasources
    module Datasources
      
      # Return unique datasources correlated to a topic
      #
      # @param slug [String] A topic's unique identifier slug
      def datasources(slug, options={})
        get "/topics/#{slug}/datasources", options
      end

      # Return unique datasources correlated to a topic grouped by type
      #
      # @param slug [String] A topic's unique identifier slug
      def datasources_by_type(slug, options={})
        get "/topics/#{slug}/datasources/types", options
      end
    
    end

  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

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