Module: Datarank::Client::SocialStats

Included in:
Datarank::Client
Defined in:
lib/datarank/social_stats.rb

Overview

Module containing methods for interacting with a topic’s social stats

Instance Method Summary collapse

Instance Method Details

#social_stats(slug, options = {}) ⇒ Object

Fetch social stats correlated to a topic

Parameters:

  • slug (String)

    A topic’s unique identifier slug



10
11
12
# File 'lib/datarank/social_stats.rb', line 10

def social_stats(slug, options={})
  get "/topics/#{slug}/social/stats", options
end