lib/datarank/reach.rb in datarank-1.3.0 vs lib/datarank/reach.rb in datarank-1.4.0
- old
+ new
@@ -2,16 +2,44 @@
class Client
# Module containing methods for interacting with a topic's reach data
module Reach
- # Fetch reach counts for topic by day
+ # Fetch reach for a topic grouped by a time interval
#
# @param slug [String] A topic's unique identifier slug
+ def reach_secondly(slug, options={})
+ get "/topics/#{slug}/reach/secondly", options
+ end
+
+ def reach_minutely(slug, options={})
+ get "/topics/#{slug}/reach/minutely", options
+ end
+
+ def reach_hourly(slug, options={})
+ get "/topics/#{slug}/reach/hourly", options
+ end
+
def reach_daily(slug, options={})
get "/topics/#{slug}/reach/daily", options
end
- end
+ def reach_weekly(slug, options={})
+ get "/topics/#{slug}/reach/weekly", options
+ end
+ def reach_monthly(slug, options={})
+ get "/topics/#{slug}/reach/monthly", options
+ end
+
+ def reach_quarterly(slug, options={})
+ get "/topics/#{slug}/reach/quarterly", options
+ end
+
+ def reach_yearly(slug, options={})
+ get "/topics/#{slug}/reach/yearly", options
+ end
+
+ end
+
end
end
\ No newline at end of file