Class: Slack::Notifier::PayloadMiddleware::At
- Defined in:
- lib/slack-notifier/payload_middleware/at.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
default_opts, #initialize, middleware_name, options
Constructor Details
This class inherits a constructor from Slack::Notifier::PayloadMiddleware::Base
Instance Method Details
#call(payload = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/slack-notifier/payload_middleware/at.rb', line 11 def call payload={} return payload unless payload[:at] payload[:text] = "#{format_ats(payload.delete(:at))}#{payload[:text]}" payload end |