lib/twitter/rest/trends.rb in twitter-6.1.0 vs lib/twitter/rest/trends.rb in twitter-6.2.0
- old
+ new
@@ -17,9 +17,10 @@
# @param id [Integer] The {https://developer.yahoo.com/geo/geoplanet Yahoo! Where On Earth ID} of the location to return trending information for. WOEIDs can be retrieved by calling {Twitter::REST::Trends#trends_available}. Global information is available by using 1 as the WOEID.
# @param options [Hash] A customizable set of options.
# @option options [String] :exclude Setting this equal to 'hashtags' will remove all hashtags from the trends list.
# @return [Array<Twitter::Trend>]
def trends(id = 1, options = {})
+ options = options.dup
options[:id] = id
response = perform_get('/1.1/trends/place.json', options).first
Twitter::TrendResults.new(response)
end
alias local_trends trends