Exception: ModSpox::Exceptions::NotInChannel

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#channelObject (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_sObject



45
46
47
# File 'lib/mod_spox/Exceptions.rb', line 45

def to_s
    "Bot is not currently in channel: #{@channel}"
end