Class: Message::Basic

Inherits:
Type
  • Object
show all
Defined in:
lib/capistrano/teams/message/types.rb

Overview

Basic type

Instance Method Summary collapse

Methods inherited from Type

#initialize, #placeholders

Constructor Details

This class inherits a constructor from Message::Type

Instance Method Details

#contentObject

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