Exception: ModSpox::Exceptions::QuietChannel

Inherits:
BotException
  • Object
show all
Defined in:
lib/mod_spox/Exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel) ⇒ QuietChannel

Returns a new instance of QuietChannel.



52
53
54
# File 'lib/mod_spox/Exceptions.rb', line 52

def initialize(channel)
    @channel = channel
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



51
52
53
# File 'lib/mod_spox/Exceptions.rb', line 51

def channel
  @channel
end

Instance Method Details

#to_sObject



55
56
57
# File 'lib/mod_spox/Exceptions.rb', line 55

def to_s
    "Bot is not allowed to speak in channel: #{@channel}"
end