Class: Lita::Adapters::Slack::ChatService
- Inherits:
-
Object
- Object
- Lita::Adapters::Slack::ChatService
- Defined in:
- lib/lita/adapters/slack/chat_service.rb
Overview
Slack-specific features made available to Lita::Robot
.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(config) ⇒ ChatService
constructor
A new instance of ChatService.
- #send_attachments(target, attachments) ⇒ void (also: #send_attachment)
Constructor Details
#initialize(config) ⇒ ChatService
Returns a new instance of ChatService.
13 14 15 |
# File 'lib/lita/adapters/slack/chat_service.rb', line 13 def initialize(config) self.api = API.new(config) end |
Instance Attribute Details
#api ⇒ Object
10 11 12 |
# File 'lib/lita/adapters/slack/chat_service.rb', line 10 def api @api end |
Instance Method Details
#send_attachments(target, attachments) ⇒ void Also known as: send_attachment
This method returns an undefined value.
22 23 24 |
# File 'lib/lita/adapters/slack/chat_service.rb', line 22 def (target, ) api.(target, Array()) end |