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
- #sentiment_daily(slug, options = {}) ⇒ Object
- #sentiment_hourly(slug, options = {}) ⇒ Object
- #sentiment_minutely(slug, options = {}) ⇒ Object
- #sentiment_monthly(slug, options = {}) ⇒ Object
- #sentiment_quarterly(slug, options = {}) ⇒ Object
-
#sentiment_secondly(slug, options = {}) ⇒ Object
Fetch sentiment for a topic grouped by a time interval.
- #sentiment_weekly(slug, options = {}) ⇒ Object
- #sentiment_yearly(slug, options = {}) ⇒ Object
Instance Method Details
#sentiment_daily(slug, options = {}) ⇒ Object
22 23 24 |
# File 'lib/datarank/sentiment.rb', line 22 def sentiment_daily(slug, ={}) get "/topics/#{slug}/sentiment/daily", end |
#sentiment_hourly(slug, options = {}) ⇒ Object
18 19 20 |
# File 'lib/datarank/sentiment.rb', line 18 def sentiment_hourly(slug, ={}) get "/topics/#{slug}/sentiment/hourly", end |
#sentiment_minutely(slug, options = {}) ⇒ Object
14 15 16 |
# File 'lib/datarank/sentiment.rb', line 14 def sentiment_minutely(slug, ={}) get "/topics/#{slug}/sentiment/minutely", end |
#sentiment_monthly(slug, options = {}) ⇒ Object
30 31 32 |
# File 'lib/datarank/sentiment.rb', line 30 def sentiment_monthly(slug, ={}) get "/topics/#{slug}/sentiment/monthly", end |
#sentiment_quarterly(slug, options = {}) ⇒ Object
34 35 36 |
# File 'lib/datarank/sentiment.rb', line 34 def sentiment_quarterly(slug, ={}) get "/topics/#{slug}/sentiment/quarterly", end |
#sentiment_secondly(slug, options = {}) ⇒ Object
Fetch sentiment for a topic grouped by a time interval
10 11 12 |
# File 'lib/datarank/sentiment.rb', line 10 def sentiment_secondly(slug, ={}) get "/topics/#{slug}/sentiment/secondly", end |
#sentiment_weekly(slug, options = {}) ⇒ Object
26 27 28 |
# File 'lib/datarank/sentiment.rb', line 26 def sentiment_weekly(slug, ={}) get "/topics/#{slug}/sentiment/weekly", end |
#sentiment_yearly(slug, options = {}) ⇒ Object
38 39 40 |
# File 'lib/datarank/sentiment.rb', line 38 def sentiment_yearly(slug, ={}) get "/topics/#{slug}/sentiment/yearly", end |