lib/twitter/rest/trends.rb in twitter-5.15.0 vs lib/twitter/rest/trends.rb in twitter-5.16.0

- old
+ new

@@ -6,11 +6,11 @@ module Twitter module REST module Trends include Twitter::REST::Utils - # Returns the top 10 trending topics for a specific WOEID + # Returns the top 50 trending topics for a specific WOEID # # @see https://dev.twitter.com/rest/reference/get/trends/place # @rate_limited Yes # @authentication Requires user context # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. @@ -21,12 +21,12 @@ def trends(id = 1, options = {}) options[:id] = id response = perform_get('/1.1/trends/place.json', options).first Twitter::TrendResults.new(response) end - alias_method :local_trends, :trends - alias_method :trends_place, :trends + alias local_trends trends + alias trends_place trends # Returns the locations that Twitter has trending topic information for # # @see https://dev.twitter.com/rest/reference/get/trends/available # @rate_limited Yes @@ -35,10 +35,10 @@ # @param options [Hash] A customizable set of options. # @return [Array<Twitter::Place>] def trends_available(options = {}) perform_get_with_objects('/1.1/trends/available.json', options, Twitter::Place) end - alias_method :trend_locations, :trends_available + alias trend_locations trends_available # Returns the locations that Twitter has trending topic information for, closest to a specified location. # # @see https://dev.twitter.com/rest/reference/get/trends/closest # @rate_limited Yes