Class: JetstreamBridge::TestHelpers::MockNats::MockApiResponse
- Inherits:
-
Object
- Object
- JetstreamBridge::TestHelpers::MockNats::MockApiResponse
- Defined in:
- lib/jetstream_bridge/test_helpers/mock_nats.rb
Overview
Mock API response message Simulates NATS::Msg for JetStream API responses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ MockApiResponse
constructor
A new instance of MockApiResponse.
Constructor Details
#initialize(data) ⇒ MockApiResponse
Returns a new instance of MockApiResponse.
504 505 506 |
# File 'lib/jetstream_bridge/test_helpers/mock_nats.rb', line 504 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
502 503 504 |
# File 'lib/jetstream_bridge/test_helpers/mock_nats.rb', line 502 def data @data end |