class WriteFlagSettingStreamingInputEnumerable
Intended to be used to wrap a call_op
, and to adjust the write flag of the call_op
in between messages yielded to it.
Attributes
call_op[RW]
Public Class Methods
new(requests_and_write_flags)
click to toggle source
# File src/ruby/pb/test/client.rb, line 241 def initialize(requests_and_write_flags) @requests_and_write_flags = requests_and_write_flags end
Public Instance Methods
each() { |request_and_flag| ... }
click to toggle source
# File src/ruby/pb/test/client.rb, line 245 def each @requests_and_write_flags.each do |request_and_flag| @call_op.write_flag = request_and_flag[:write_flag] yield request_and_flag[:request] end end