Exception: ModSpox::Exceptions::QuietChannel
- Inherits:
-
BotException
- Object
- Exception
- BotException
- ModSpox::Exceptions::QuietChannel
- Defined in:
- lib/mod_spox/Exceptions.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
Instance Method Summary collapse
-
#initialize(channel) ⇒ QuietChannel
constructor
A new instance of QuietChannel.
- #to_s ⇒ Object
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
#channel ⇒ Object (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_s ⇒ Object
55 56 57 |
# File 'lib/mod_spox/Exceptions.rb', line 55 def to_s "Bot is not allowed to speak in channel: #{@channel}" end |