Sha256: 15a098d2f0727323ff692de6af7268bf64f9898156a47898c396550dc7d0d705

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 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
        get "/topics/#{slug}/datasources"
      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
        get "/topics/#{slug}/datasources/types"
      end
    
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datarank-1.0.0 lib/datarank/datasources.rb