Class: Dingding::Notifier::PayloadMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/dingding-notifier/payload_middleware.rb,
lib/dingding-notifier/payload_middleware/base.rb,
lib/dingding-notifier/payload_middleware/stack.rb,
lib/dingding-notifier/payload_middleware/format_link.rb,
lib/dingding-notifier/payload_middleware/format_text.rb,
lib/dingding-notifier/payload_middleware/format_markdown.rb,
lib/dingding-notifier/payload_middleware/format_feed_card.rb,
lib/dingding-notifier/payload_middleware/format_action_card.rb

Defined Under Namespace

Classes: Base, FormatActionCard, FormatFeedCard, FormatLink, FormatMarkdown, FormatText, Stack

Class Method Summary collapse

Class Method Details

.register(middleware, name) ⇒ Object



11
12
13
# File 'lib/dingding-notifier/payload_middleware.rb', line 11

def register middleware, name
  registry[name] = middleware
end

.registryObject



7
8
9
# File 'lib/dingding-notifier/payload_middleware.rb', line 7

def registry
  @registry ||= {}
end