Exception: ModSpox::Exceptions::NotInChannel
- Inherits:
-
BotException
- Object
- Exception
- BotException
- ModSpox::Exceptions::NotInChannel
- 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) ⇒ NotInChannel
constructor
A new instance of NotInChannel.
- #to_s ⇒ Object
Constructor Details
#initialize(channel) ⇒ NotInChannel
Returns a new instance of NotInChannel.
42 43 44 |
# File 'lib/mod_spox/Exceptions.rb', line 42 def initialize(channel) @channel = channel end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
41 42 43 |
# File 'lib/mod_spox/Exceptions.rb', line 41 def channel @channel end |
Instance Method Details
#to_s ⇒ Object
45 46 47 |
# File 'lib/mod_spox/Exceptions.rb', line 45 def to_s "Bot is not currently in channel: #{@channel}" end |