class StandupMD::Post::Message
A platform-neutral message to send through a posting adapter.
Attributes
The adapter name requested by the caller.
@return [Symbol]
The destination channel, room, or conversation identifier.
@return [String, nil]
The standup entry being posted.
@return [StandupMD::Entry]
The rendered message body.
@return [String]
Public Class Methods
Source
# File lib/standup_md/post/message.rb, line 39 def initialize(entry:, text:, channel:, adapter:) @entry = entry @text = text.to_s @channel = channel @adapter = adapter.to_sym end
Builds a message for a posting adapter.
@param entry [StandupMD::Entry] @param text [String] @param channel [String, nil] @param adapter [String, Symbol]