class BotMob::Networks::Slack::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"
}
Public Class Methods
new(**options)
click to toggle source
Calls superclass method
BotMob::InboundMessage::new
# File lib/bot_mob/networks/slack/inbound_message.rb, line 28 def initialize(**options) @network = :slack @body = options[:text] super end