Sha256: d4a3e1298b4876de11dc6a79915f670512f614adc8090d2b5e7541a404ca4777

Contents?: true

Size: 421 Bytes

Versions: 19

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

module Twitch
  module Bot
    # Twitch channel management
    class Channel
      attr_reader :name, :moderators

      def initialize(name)
        @name = name.downcase
        @moderators = []
      end

      def add_moderator(moderator)
        @moderators << moderator
      end

      def remove_moderator(moderator)
        @moderators.delete moderator
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
twitch-bot-6.0.0 lib/twitch/bot/channel.rb
twitch-bot-5.0.6 lib/twitch/bot/channel.rb
twitch-bot-5.0.5 lib/twitch/bot/channel.rb
twitch-bot-5.0.4 lib/twitch/bot/channel.rb
twitch-bot-5.0.2 lib/twitch/bot/channel.rb
twitch-bot-5.0.1 lib/twitch/bot/channel.rb
twitch-bot-5.0.0 lib/twitch/bot/channel.rb
twitch-bot-4.1.1 lib/twitch/bot/channel.rb
twitch-bot-4.1.0 lib/twitch/bot/channel.rb
twitch-bot-4.0.1 lib/twitch/bot/channel.rb
twitch-bot-4.0.0 lib/twitch/bot/channel.rb
twitch-bot-3.2.1 lib/twitch/bot/channel.rb
twitch-bot-3.2.0 lib/twitch/bot/channel.rb
twitch-bot-3.1.0 lib/twitch/bot/channel.rb
twitch-bot-2.1.1 lib/twitch/bot/channel.rb
twitch-bot-2.1.0 lib/twitch/bot/channel.rb
twitch-bot-2.0.1 lib/twitch/bot/channel.rb
twitch-bot-2.0.0 lib/twitch/bot/channel.rb
twitch-bot-1.0.0 lib/twitch/bot/channel.rb