Class: BotMob::Networks::Slack::InboundMessage
- Inherits:
-
InboundMessage
- Object
- InboundMessage
- BotMob::Networks::Slack::InboundMessage
- Defined in:
- lib/bot_mob/networks/slack/inbound_message.rb
Overview
# BotMob::InboundMessage
Structured data provided to a bot by Slack via sinatra params
"token": "NiI3K5i7SORx0MAf8U9QRfCX",
"team_id": "T09K1L491",
"team_domain": "foobar",
"service_id": "16319829032",
"channel_id": "C29R5RZLN",
"channel_name": "general",
"timestamp": "1482729119.000014",
"user_id": "U07R1RUJA",
"user_name": "matthew",
"text": "Hi Everyone!",
"splat": [],
"captures": [
"slack"
],
"network": "slack"
Instance Attribute Summary
Attributes inherited from InboundMessage
Instance Method Summary collapse
-
#initialize(**options) ⇒ InboundMessage
constructor
A new instance of InboundMessage.
Methods inherited from InboundMessage
default_network, default_user_name, #human?, message_attributes, message_attrs, #params, prepare
Constructor Details
#initialize(**options) ⇒ InboundMessage
Returns a new instance of InboundMessage.
28 29 30 31 32 |
# File 'lib/bot_mob/networks/slack/inbound_message.rb', line 28 def initialize(**) @network = :slack @body = [:text] super end |