lib/twitter/rest/api/utils.rb in twitter-5.4.1 vs lib/twitter/rest/api/utils.rb in twitter-5.5.0

- old
+ new

@@ -47,11 +47,11 @@ # @param request_method [Symbol] # @param path [String] # @param args [Array] # @return [Array<Twitter::User>] - def threaded_user_objects_from_response(request_method, path, args) + def parallel_user_objects_from_response(request_method, path, args) arguments = Twitter::Arguments.new(args) Twitter::Utils.parallel_map(arguments) do |user| object_from_response(Twitter::User, request_method, path, merge_user(arguments.options, user)) end end @@ -99,10 +99,10 @@ # @param klass [Class] # @param request_method [Symbol] # @param path [String] # @param args [Array] # @return [Array] - def threaded_objects_from_response(klass, request_method, path, args) # rubocop:disable ParameterLists + def parallel_objects_from_response(klass, request_method, path, args) # rubocop:disable ParameterLists arguments = Twitter::Arguments.new(args) Twitter::Utils.parallel_map(arguments) do |object| id = extract_id(object) object_from_response(klass, request_method, path, arguments.options.merge(:id => id)) end