Module: Datarank::Client::Sentiment

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

Overview

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

Instance Method Summary collapse

Instance Method Details

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



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

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

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



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

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

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



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

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

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



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

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

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



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

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

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

Fetch sentiment for a topic grouped by a time interval

Parameters:

  • slug (String)

    A topic’s unique identifier slug



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

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

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



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

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

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



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

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