Class: Lita::Adapters::Slack::RoomCreator Private
- Inherits:
-
Object
- Object
- Lita::Adapters::Slack::RoomCreator
- Defined in:
- lib/lita/adapters/slack/room_creator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.create_room(channel, robot) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 |
# File 'lib/lita/adapters/slack/room_creator.rb', line 7 def create_room(channel, robot) Lita::Room.create_or_update(channel.id, name: channel.name) robot.trigger(:slack_channel_created, slack_channel: channel) end |
.create_rooms(channels, robot) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/lita/adapters/slack/room_creator.rb', line 13 def create_rooms(channels, robot) channels.each { |channel| create_room(channel, robot) } end |