Class: BotMob::Networks::Slack::OutboundMessage

Inherits:
OutboundMessage show all
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

Attributes inherited from OutboundMessage

#body, #network

Instance Method Summary collapse

Methods inherited from OutboundMessage

prepare

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(**options)
  @network = :slack
  @channel = '#general'
  super
end

Instance Attribute Details

#channelObject (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

#inboundObject (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