Class: Message::Basic
- Defined in:
- lib/capistrano/teams/message/types.rb
Overview
Basic type
Instance Method Summary collapse
-
#content ⇒ Object
Get the body of the POST message as JSON.
Methods inherited from Type
Constructor Details
This class inherits a constructor from Message::Type
Instance Method Details
#content ⇒ Object
Get the body of the POST message as JSON.
42 43 44 45 46 47 48 |
# File 'lib/capistrano/teams/message/types.rb', line 42 def content { title: fetch(:teams_basic_message_title), text: fetch(:teams_basic_message_text), themeColor: @theme_color }.to_json % placeholders end |