Class: JetstreamBridge::TestHelpers::MockNats::MockApiResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#dataObject (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