module Datarank class Client # Module containing methods for interacting with geocoded data 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" 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" end end end end