Class: Baml::StreamState

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Generic, T::Sig
Defined in:
lib/stream.rb

Overview

def each(&block)

  @raw_stream.each do |raw_msg|
    yield Message.from(raw_msg)
  end
end

end

Constant Summary collapse

Value =
type_member

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ StreamState

Returns a new instance of StreamState.



28
29
30
# File 'lib/stream.rb', line 28

def initialize(props)
  super(value: props[:value], state: props[:state])
end