class Lita::Adapters::Slack::RoomCreator
@api private
Public Class Methods
create_room(channel, robot)
click to toggle source
# 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)
click to toggle source
# File lib/lita/adapters/slack/room_creator.rb, line 13 def create_rooms(channels, robot) channels.each { |channel| create_room(channel, robot) } end