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

- old
+ new

@@ -56,11 +56,11 @@ # @option options [String] :"attribute:street_address" This option searches for places which have this given street address. There are other well-known and application-specific attributes available. Custom attributes are also permitted. # @return [Array<Twitter::Place>] def geo_search(options = {}) perform_get_with_object('/1.1/geo/search.json', options, Twitter::GeoResults) end - alias_method :places_nearby, :geo_search + alias places_nearby geo_search # Locates places near the given coordinates which are similar in name # # @see https://dev.twitter.com/rest/reference/get/geo/similar_places # @note Conceptually, you would use this method to get a list of known places to choose from first. Then, if the desired place doesn't exist, make a request to {Twitter::REST::PlacesAndGeo#place} to create a new one. The token contained in the response is the token necessary to create a new place. @@ -75,9 +75,9 @@ # @option options [String] :"attribute:street_address" This option searches for places which have this given street address. There are other well-known and application-specific attributes available. Custom attributes are also permitted. # @return [Array<Twitter::Place>] def similar_places(options = {}) perform_get_with_object('/1.1/geo/similar_places.json', options, Twitter::GeoResults) end - alias_method :places_similar, :similar_places + alias places_similar similar_places end end end