Class: Message::Type

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

Overview

Type

Direct Known Subclasses

Basic, MessageCard

Instance Method Summary collapse

Constructor Details

#initialize(placeholder_list, theme_color, facts = []) ⇒ Type

Returns a new instance of Type.



24
25
26
27
28
# File 'lib/capistrano/teams/message/types.rb', line 24

def initialize(placeholder_list, theme_color, facts = [])
  @placeholder_list = placeholder_list
  @theme_color = theme_color
  @facts = facts
end

Instance Method Details

#contentObject



34
35
36
# File 'lib/capistrano/teams/message/types.rb', line 34

def content
  raise 'Abstract method called'
end

#placeholdersObject



30
31
32
# File 'lib/capistrano/teams/message/types.rb', line 30

def placeholders
  Message::Placeholders.new(@placeholder_list).placeholders
end