Class: Changelog::Notifier::Formatters::Slack
- Inherits:
-
Object
- Object
- Changelog::Notifier::Formatters::Slack
- Defined in:
- lib/changelog/notifier/formatters/slack.rb
Overview
Format the given release note hash for Slack
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(release_note_hash) ⇒ Slack
constructor
A new instance of Slack.
Constructor Details
#initialize(release_note_hash) ⇒ Slack
Returns a new instance of Slack.
13 14 15 |
# File 'lib/changelog/notifier/formatters/slack.rb', line 13 def initialize(release_note_hash) @release_note_hash = release_note_hash end |
Instance Method Details
#format ⇒ Object
17 18 19 20 21 22 |
# File 'lib/changelog/notifier/formatters/slack.rb', line 17 def format { attachments: , text: description_text } end |