class Twitch::Bot::Channel
Twitch
channel management
Attributes
moderators[R]
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/twitch/bot/channel.rb, line 9 def initialize(name) @name = name.downcase @moderators = [] end
Public Instance Methods
add_moderator(moderator)
click to toggle source
# File lib/twitch/bot/channel.rb, line 14 def add_moderator(moderator) @moderators << moderator end
remove_moderator(moderator)
click to toggle source
# File lib/twitch/bot/channel.rb, line 18 def remove_moderator(moderator) @moderators.delete moderator end