class Message::Basic

Basic type

Public Instance Methods

content() click to toggle source

Get the body of the POST message as JSON.

# 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