Class: BotMob::Networks::Slack::OutboundMessage
- Inherits:
-
OutboundMessage
- Object
- OutboundMessage
- BotMob::Networks::Slack::OutboundMessage
- Defined in:
- lib/bot_mob/networks/slack/outbound_message.rb
Overview
# BotMob::Networks::Slack::OutboundMessage
Formatted message for delivery to slack
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#inbound ⇒ Object
readonly
Returns the value of attribute inbound.
Attributes inherited from OutboundMessage
Instance Method Summary collapse
-
#initialize(**options) ⇒ OutboundMessage
constructor
A new instance of OutboundMessage.
Methods inherited from OutboundMessage
Constructor Details
#initialize(**options) ⇒ OutboundMessage
Returns a new instance of OutboundMessage.
10 11 12 13 14 |
# File 'lib/bot_mob/networks/slack/outbound_message.rb', line 10 def initialize(**) @network = :slack @channel = '#general' super end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
8 9 10 |
# File 'lib/bot_mob/networks/slack/outbound_message.rb', line 8 def channel @channel end |
#inbound ⇒ Object (readonly)
Returns the value of attribute inbound.
8 9 10 |
# File 'lib/bot_mob/networks/slack/outbound_message.rb', line 8 def inbound @inbound end |