lib/stream/batch.rb in stream-ruby-3.0.1 vs lib/stream/batch.rb in stream-ruby-3.1.0

- old
+ new

@@ -6,18 +6,16 @@ # @param [Array<Hash<:source, :target>>] follows the list of follows # # @return [nil] # # @example + # follows = [ + # {:source => 'flat:1', :target => 'user:1'}, + # {:source => 'flat:1', :target => 'user:3'} + # ] + # @client.follow_many(follows) # - # - # follows = [ - # {:source => 'flat:1', :target => 'user:1'}, - # {:source => 'flat:1', :target => 'user:3'} - # ] - # @client.follow_many(follows) - # def follow_many(follows, activity_copy_limit = nil) query_params = {} unless activity_copy_limit.nil? query_params['activity_copy_limit'] = activity_copy_limit end @@ -31,16 +29,14 @@ # @param [Array<Hash<:source, :target, :keep_history>>] unfollows the list of follows to remove. # # return [nil] # # @example - # - # - # unfollows = [ - # {source: 'user:1', target: 'timeline:1'}, - # {source: 'user:2', target: 'timeline:2', keep_history: false} - # ] - # @client.unfollow_many(unfollows) + # unfollows = [ + # {source: 'user:1', target: 'timeline:1'}, + # {source: 'user:2', target: 'timeline:2', keep_history: false} + # ] + # @client.unfollow_many(unfollows) # def unfollow_many(unfollows) signature = Stream::Signer.create_jwt_token('follower', '*', @api_secret, '*') make_request(:post, '/unfollow_many/', signature, {}, unfollows) end