lib/datarank/locations.rb in datarank-1.0.0 vs lib/datarank/locations.rb in datarank-1.1.0
- old
+ new
@@ -5,18 +5,18 @@
module Locations
# Fetch geocoded comments for a topic
#
# @param slug [String] A topic's unique identifier slug
- def locations slug
- get "/topics/#{slug}/location/pins"
+ def locations(slug, options={})
+ get "/topics/#{slug}/location/pins", options
end
# Fetch average sentiment for topic broken down into provinces with counts
#
# @param slug [String] A topic's unique identifier slug
- def location_sentiment slug
- get "/topics/#{slug}/location/sentiment"
+ def location_sentiment(slug, options={})
+ get "/topics/#{slug}/location/sentiment", options
end
end
end
\ No newline at end of file