Class: Message::Type
- Inherits:
-
Object
- Object
- Message::Type
- Defined in:
- lib/capistrano/teams/message/types.rb
Overview
Type
Direct Known Subclasses
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(placeholder_list, theme_color, facts = []) ⇒ Type
constructor
A new instance of Type.
- #placeholders ⇒ Object
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
#content ⇒ Object
34 35 36 |
# File 'lib/capistrano/teams/message/types.rb', line 34 def content raise 'Abstract method called' end |
#placeholders ⇒ Object
30 31 32 |
# File 'lib/capistrano/teams/message/types.rb', line 30 def placeholders Message::Placeholders.new(@placeholder_list).placeholders end |