Class: ModSpox::Messages::Outgoing::ChannelMode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel, mode, target = '') ⇒ ChannelMode

channel

channel to set mode in

mode

mode to set/unset

target

target of mode change

Query/change channel modes. Target can also be used as mode options for cases like: MODE #chan +l 10 where the target would hold the limit value.



17
18
19
20
21
# File 'lib/mod_spox/messages/outgoing/ChannelMode.rb', line 17

def initialize(channel, mode, target='')
    @channel = channel
    @mode = mode
    @target = target
end

Instance Attribute Details

#channelObject (readonly)

channel to set mode



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

def channel
  @channel
end

#modeObject (readonly)

mode to set/unset



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

def mode
  @mode
end

#targetObject (readonly)

target of mode change



10
11
12
# File 'lib/mod_spox/messages/outgoing/ChannelMode.rb', line 10

def target
  @target
end