Class: BPS::Publisher::STAN::Topic
- Inherits:
-
Abstract::Topic
- Object
- Abstract::Topic
- BPS::Publisher::STAN::Topic
- Defined in:
- lib/bps/publisher/stan.rb
Instance Method Summary collapse
- #flush ⇒ Object
-
#initialize(client, topic) ⇒ Topic
constructor
A new instance of Topic.
- #publish(message, **_opts) ⇒ Object
Constructor Details
#initialize(client, topic) ⇒ Topic
Returns a new instance of Topic.
8 9 10 11 12 13 |
# File 'lib/bps/publisher/stan.rb', line 8 def initialize(client, topic) super() @client = client @topic = topic end |
Instance Method Details
#flush ⇒ Object
19 20 21 |
# File 'lib/bps/publisher/stan.rb', line 19 def flush(**) # noop end |
#publish(message, **_opts) ⇒ Object
15 16 17 |
# File 'lib/bps/publisher/stan.rb', line 15 def publish(, **_opts) @client.publish(@topic, ) end |