Sha256: 7cbff102aa2bb77995647977750567091bda4e70fd5f85c94e39c0af7e3bdc5f

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datarank-1.0.0 lib/datarank/locations.rb