Module: Boty::Slack
- Included in:
- Bot
- Defined in:
- lib/boty/slack.rb,
lib/boty/slack/im.rb,
lib/boty/slack/rtm.rb,
lib/boty/slack/url.rb,
lib/boty/slack/chat.rb,
lib/boty/slack/user.rb,
lib/boty/slack/users.rb,
lib/boty/slack/channel.rb,
lib/boty/slack/message.rb
Defined Under Namespace
Modules: URL
Classes: Channel, Chat, IM, Message, RTM, User, Users
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.chat ⇒ Object
13
14
15
|
# File 'lib/boty/slack.rb', line 13
def chat
@chat ||= Chat.new
end
|
.rtm ⇒ Object
17
18
19
|
# File 'lib/boty/slack.rb', line 17
def rtm
@rtm ||= RTM.new
end
|
.users ⇒ Object
21
22
23
|
# File 'lib/boty/slack.rb', line 21
def users
@users ||= Users.new
end
|
Instance Method Details
#User(user_id) ⇒ Object
26
27
28
29
|
# File 'lib/boty/slack.rb', line 26
def User(user_id)
return unless user_id
Boty::Slack::User.new "id" => user_id
end
|