module MessageQuickly::CallbackRegistry::ClassMethods
Attributes
callbacks[R]
Public Instance Methods
handler_for(webhook_name)
click to toggle source
# File lib/message_quickly/callback_registry.rb, line 14 def handler_for(webhook_name) @callbacks[webhook_name]&.constantize end
register(klass)
click to toggle source
# File lib/message_quickly/callback_registry.rb, line 10 def register(klass) @callbacks[klass.webhook_name] = klass.to_s end