Class: Slack::Notifier::PayloadMiddleware
- Inherits:
-
Object
- Object
- Slack::Notifier::PayloadMiddleware
show all
- Defined in:
- lib/slack-notifier/payload_middleware.rb,
lib/slack-notifier/payload_middleware/at.rb,
lib/slack-notifier/payload_middleware/base.rb,
lib/slack-notifier/payload_middleware/stack.rb,
lib/slack-notifier/payload_middleware/channels.rb,
lib/slack-notifier/payload_middleware/format_message.rb,
lib/slack-notifier/payload_middleware/format_attachments.rb
Defined Under Namespace
Classes: At, Base, Channels, FormatAttachments, FormatMessage, Stack
Class Method Summary
collapse
Class Method Details
.register(middleware, name) ⇒ Object
11
12
13
|
# File 'lib/slack-notifier/payload_middleware.rb', line 11
def register middleware, name
registry[name] = middleware
end
|
.registry ⇒ Object
7
8
9
|
# File 'lib/slack-notifier/payload_middleware.rb', line 7
def registry
@registry ||= {}
end
|