lib/stripe_event.rb in stripe_event-1.3.0 vs lib/stripe_event.rb in stripe_event-1.4.0
- old
+ new
@@ -33,9 +33,14 @@
end
def all(callable = Proc.new)
subscribe nil, callable
end
+
+ def listening?(name)
+ namespaced_name = namespace.call(name)
+ backend.notifier.listening?(namespaced_name)
+ end
end
class Namespace < Struct.new(:value, :delimiter)
def call(name = nil)
"#{value}#{delimiter}#{name}"