[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# gapic-common - Class Gapic::Rest::ServerStream (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/gapic-common/latest/Gapic-Rest-ServerStream)\n- [1.0.1](/ruby/docs/reference/gapic-common/1.0.1/Gapic-Rest-ServerStream)\n- [0.26.0](/ruby/docs/reference/gapic-common/0.26.0/Gapic-Rest-ServerStream)\n- [0.25.0](/ruby/docs/reference/gapic-common/0.25.0/Gapic-Rest-ServerStream)\n- [0.24.0](/ruby/docs/reference/gapic-common/0.24.0/Gapic-Rest-ServerStream) \nReference documentation and code samples for the gapic-common class Gapic::Rest::ServerStream.\n\nA class to provide the Enumerable interface to the response of a REST server-streaming dmethod.\n\n\n\u003cbr /\u003e\n\nServerStream provides the enumerations over the individual response messages within the stream. \n\nInherits\n--------\n\n- Object \n\nIncludes\n--------\n\n- Enumerable\n\nExample\n-------\n\nnormal iteration over resources. \n\n```ruby\nserver_stream.each { |response| puts response }\n```\n\nMethods\n-------\n\n### #each\n\n def each() -\u003e Enumerator\n\nIterate over JSON objects in the streamed response. \n**Yields**\n\n- (Object) --- Gives one complete Message object. \n**Returns**\n\n- (Enumerator) --- if no block is provided\n\n### #initialize\n\n def initialize(message_klass, json_enumerator) -\u003e ServerStream\n\nInitializes ServerStream object. \n**Parameters**\n\n- **message_klass** (Class)\n- **json_enumerator** (Enumerator\\\u003cString\\\u003e) \n**Returns**\n\n- ([ServerStream](./Gapic-Rest-ServerStream)) --- a new instance of ServerStream"]]