Class: ModSpox::Messages::Outgoing::UserMode

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/outgoing/UserMode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nick, mode) ⇒ UserMode

nick

The bot’s nick

mode

mode to set/unset

Create UserMode message



12
13
14
15
# File 'lib/mod_spox/messages/outgoing/UserMode.rb', line 12

def initialize(nick, mode)
    @nick = nick
    @mode = mode
end

Instance Attribute Details

#modeObject (readonly)

mode to set/unset



8
9
10
# File 'lib/mod_spox/messages/outgoing/UserMode.rb', line 8

def mode
  @mode
end

#nickObject (readonly)

The bot’s nick



6
7
8
# File 'lib/mod_spox/messages/outgoing/UserMode.rb', line 6

def nick
  @nick
end