class PubsubNotifier::Base
Public Class Methods
client()
click to toggle source
# File lib/pubsub_notifier/base.rb, line 8 def client @_client ||= clients[:logger].new end
use(name, options = {})
click to toggle source
# File lib/pubsub_notifier/base.rb, line 4 def use(name, options = {}) @_client = (clients[name.to_sym] || clients[:logger]).new(options) end
Private Class Methods
clients()
click to toggle source
# File lib/pubsub_notifier/base.rb, line 14 def clients PubsubNotifier.config.clients end
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/pubsub_notifier/base.rb, line 18 def method_missing(method_name, *args, &block) super unless public_instance_methods.include?(method_name.to_sym) new.public_send(method_name, *args, &block) end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/pubsub_notifier/base.rb, line 23 def respond_to_missing?(method_name, include_private = false) public_instance_methods.include?(method_name.to_sym) || super end
Private Instance Methods
client()
click to toggle source
# File lib/pubsub_notifier/base.rb, line 30 def client self.class.client end
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/pubsub_notifier/base.rb, line 34 def method_missing(method_name, *args, &block) super unless client.respond_to?(method_name.to_sym) client.public_send(method_name, *args, &block) end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/pubsub_notifier/base.rb, line 39 def respond_to_missing?(method_name, include_private = false) client.respond_to?(method_name.to_sym) || super end