Module: Datarank::Client::Reach

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

Overview

Module containing methods for interacting with a topic’s reach data

Instance Method Summary collapse

Instance Method Details

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



22
23
24
# File 'lib/datarank/reach.rb', line 22

def reach_daily(slug, options={})
  get "/topics/#{slug}/reach/daily", options
end

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



18
19
20
# File 'lib/datarank/reach.rb', line 18

def reach_hourly(slug, options={})
  get "/topics/#{slug}/reach/hourly", options
end

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



14
15
16
# File 'lib/datarank/reach.rb', line 14

def reach_minutely(slug, options={})
  get "/topics/#{slug}/reach/minutely", options
end

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



30
31
32
# File 'lib/datarank/reach.rb', line 30

def reach_monthly(slug, options={})
  get "/topics/#{slug}/reach/monthly", options
end

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



34
35
36
# File 'lib/datarank/reach.rb', line 34

def reach_quarterly(slug, options={})
  get "/topics/#{slug}/reach/quarterly", options
end

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

Fetch reach for a topic grouped by a time interval

Parameters:

  • slug (String)

    A topic’s unique identifier slug



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

def reach_secondly(slug, options={})
  get "/topics/#{slug}/reach/secondly", options
end

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



26
27
28
# File 'lib/datarank/reach.rb', line 26

def reach_weekly(slug, options={})
  get "/topics/#{slug}/reach/weekly", options
end

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



38
39
40
# File 'lib/datarank/reach.rb', line 38

def reach_yearly(slug, options={})
  get "/topics/#{slug}/reach/yearly", options
end