class BPS::Subscriber::Abstract
Public Class Methods
new()
click to toggle source
# File lib/bps/subscriber/abstract.rb, line 4 def initialize ObjectSpace.define_finalizer(self, proc { close }) end
Public Instance Methods
close()
click to toggle source
Close the subscriber.
# File lib/bps/subscriber/abstract.rb, line 15 def close; end
subscribe(_topic, **)
click to toggle source
Subscribe to a topic @params [String] topic the topic name.
# File lib/bps/subscriber/abstract.rb, line 10 def subscribe(_topic, **) raise 'not implemented' end