Class: Turbocable::NullAdapter::NullAck
- Inherits:
-
Struct
- Object
- Struct
- Turbocable::NullAdapter::NullAck
- Defined in:
- lib/turbocable/null_adapter.rb
Overview
Lightweight struct returned by #publish in place of a real NATS::JetStream::PubAck.
Instance Attribute Summary collapse
-
#duplicate ⇒ Object
Returns the value of attribute duplicate.
-
#seq ⇒ Object
Returns the value of attribute seq.
-
#stream ⇒ Object
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(stream: "TURBOCABLE", seq: 0, duplicate: false) ⇒ NullAck
constructor
A new instance of NullAck.
Constructor Details
#initialize(stream: "TURBOCABLE", seq: 0, duplicate: false) ⇒ NullAck
Returns a new instance of NullAck.
124 125 126 |
# File 'lib/turbocable/null_adapter.rb', line 124 def initialize(stream: "TURBOCABLE", seq: 0, duplicate: false) super(stream, seq, duplicate) end |
Instance Attribute Details
#duplicate ⇒ Object
Returns the value of attribute duplicate
120 121 122 |
# File 'lib/turbocable/null_adapter.rb', line 120 def duplicate @duplicate end |
#seq ⇒ Object
Returns the value of attribute seq
120 121 122 |
# File 'lib/turbocable/null_adapter.rb', line 120 def seq @seq end |
#stream ⇒ Object
Returns the value of attribute stream
120 121 122 |
# File 'lib/turbocable/null_adapter.rb', line 120 def stream @stream end |