Class: JetstreamBridge::TestHelpers::MockNats::MockAck
- Inherits:
-
Object
- Object
- JetstreamBridge::TestHelpers::MockNats::MockAck
- Defined in:
- lib/jetstream_bridge/test_helpers/mock_nats.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
- #duplicate? ⇒ Boolean
-
#initialize(duplicate:, sequence:, stream:) ⇒ MockAck
constructor
A new instance of MockAck.
Constructor Details
#initialize(duplicate:, sequence:, stream:) ⇒ MockAck
Returns a new instance of MockAck.
360 361 362 363 364 365 |
# File 'lib/jetstream_bridge/test_helpers/mock_nats.rb', line 360 def initialize(duplicate:, sequence:, stream:) @duplicate = duplicate @sequence = sequence @stream = stream @error = nil end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
358 359 360 |
# File 'lib/jetstream_bridge/test_helpers/mock_nats.rb', line 358 def error @error end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
358 359 360 |
# File 'lib/jetstream_bridge/test_helpers/mock_nats.rb', line 358 def sequence @sequence end |
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
358 359 360 |
# File 'lib/jetstream_bridge/test_helpers/mock_nats.rb', line 358 def stream @stream end |
Instance Method Details
#duplicate? ⇒ Boolean
367 368 369 |
# File 'lib/jetstream_bridge/test_helpers/mock_nats.rb', line 367 def duplicate? @duplicate end |