Class: Plushie::Event::Stream
- Inherits:
-
Data
- Object
- Data
- Plushie::Event::Stream
- Defined in:
- lib/plushie/event.rb,
sig/plushie/event.rbs
Overview
Stream command chunk events. Triggered for each value emitted by a Command.stream source.
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#tag [Symbol] the tag specified in Command.stream([Symbol]) ⇒ Object
readonly
Stream command chunk events.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#value [Object] the emitted chunk value([Object]) ⇒ Object
readonly
Stream command chunk events.
Instance Method Summary collapse
-
#initialize ⇒ Stream
constructor
A new instance of Stream.
- #with ⇒ Stream
Constructor Details
#initialize ⇒ Stream
Returns a new instance of Stream.
184 |
# File 'sig/plushie/event.rbs', line 184
def initialize: (tag: Symbol, value: untyped) -> void
|
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag
362 363 364 |
# File 'lib/plushie/event.rb', line 362 def tag @tag end |
#tag [Symbol] the tag specified in Command.stream([Symbol]) ⇒ Object (readonly)
Stream command chunk events. Triggered for each value emitted by a Command.stream source.
362 |
# File 'lib/plushie/event.rb', line 362 Stream = Data.define(:tag, :value) |
#value ⇒ Object (readonly)
Returns the value of attribute value
362 363 364 |
# File 'lib/plushie/event.rb', line 362 def value @value end |
#value [Object] the emitted chunk value([Object]) ⇒ Object (readonly)
Stream command chunk events. Triggered for each value emitted by a Command.stream source.
362 |
# File 'lib/plushie/event.rb', line 362 Stream = Data.define(:tag, :value) |