lib/datarank/sentiment.rb in datarank-1.3.0 vs lib/datarank/sentiment.rb in datarank-1.4.0

- old
+ new

@@ -2,16 +2,44 @@ class Client # Module containing methods for interacting with a topic's sentiment data module Sentiment - # Fetch sentiment for a topic grouped by day + # Fetch sentiment for a topic grouped by a time interval # # @param slug [String] A topic's unique identifier slug + def sentiment_secondly(slug, options={}) + get "/topics/#{slug}/sentiment/secondly", options + end + + def sentiment_minutely(slug, options={}) + get "/topics/#{slug}/sentiment/minutely", options + end + + def sentiment_hourly(slug, options={}) + get "/topics/#{slug}/sentiment/hourly", options + end + def sentiment_daily(slug, options={}) get "/topics/#{slug}/sentiment/daily", options end - end + def sentiment_weekly(slug, options={}) + get "/topics/#{slug}/sentiment/weekly", options + end + def sentiment_monthly(slug, options={}) + get "/topics/#{slug}/sentiment/monthly", options + end + + def sentiment_quarterly(slug, options={}) + get "/topics/#{slug}/sentiment/quarterly", options + end + + def sentiment_yearly(slug, options={}) + get "/topics/#{slug}/sentiment/yearly", options + end + + end + end end \ No newline at end of file