Class: ModSpox::Messages::Outgoing::ChannelMode
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::ChannelMode
- Defined in:
- lib/mod_spox/messages/outgoing/ChannelMode.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
channel to set mode.
-
#mode ⇒ Object
readonly
mode to set/unset.
-
#target ⇒ Object
readonly
target of mode change.
Instance Method Summary collapse
-
#initialize(channel, mode, target = '') ⇒ ChannelMode
constructor
- channel
- channel to set mode in mode
- mode to set/unset target
-
target of mode change Query/change channel modes.
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
#channel ⇒ Object (readonly)
channel to set mode
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/ChannelMode.rb', line 6 def channel @channel end |
#mode ⇒ Object (readonly)
mode to set/unset
8 9 10 |
# File 'lib/mod_spox/messages/outgoing/ChannelMode.rb', line 8 def mode @mode end |
#target ⇒ Object (readonly)
target of mode change
10 11 12 |
# File 'lib/mod_spox/messages/outgoing/ChannelMode.rb', line 10 def target @target end |