class Lita::Adapters::Slack::ChatService
Slack-specific features made available to Lita::Robot
. @api public @since 1.6.0
Attributes
api[RW]
Public Class Methods
new(config)
click to toggle source
@param config [Lita::Configuration] The adapter's configuration data.
# File lib/lita/adapters/slack/chat_service.rb, line 13 def initialize(config) self.api = API.new(config) end
Public Instance Methods
send_attachments(target, attachments)
click to toggle source
@param target [Lita::Room, Lita::User] A room or user object indicating where the
attachment should be sent.
@param attachments [Attachment, Array<Attachment>] An {Attachment} or array of
{Attachment}s to send.
@return [void]
# File lib/lita/adapters/slack/chat_service.rb, line 22 def send_attachments(target, attachments) api.send_attachments(target, Array(attachments)) end
Also aliased as: send_attachment