class BPS::Publisher::NATS::Topic
Public Class Methods
new(client, topic)
click to toggle source
Calls superclass method
# File lib/bps/publisher/nats.rb, line 10 def initialize(client, topic) super() @client = client @topic = topic end
Public Instance Methods
flush(**)
click to toggle source
# File lib/bps/publisher/nats.rb, line 21 def flush(**) @client.flush(FLUSH_TIMEOUT) end
publish(message, **_opts)
click to toggle source
# File lib/bps/publisher/nats.rb, line 17 def publish(message, **_opts) @client.publish(@topic, message) end