Class: ModSpox::Messages::Outgoing::Join
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::Join
- Defined in:
- lib/mod_spox/messages/outgoing/Join.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
channel to join.
-
#key ⇒ Object
readonly
key for channel.
Instance Method Summary collapse
-
#initialize(channel, key = nil) ⇒ Join
constructor
- channel
- channel to join key
-
channel key if needed Join the channel.
Constructor Details
#initialize(channel, key = nil) ⇒ Join
- channel
-
channel to join
- key
-
channel key if needed
Join the channel. This command only allows single joins.
12 13 14 15 |
# File 'lib/mod_spox/messages/outgoing/Join.rb', line 12 def initialize(channel, key=nil) @channel = channel @key = key end |
Instance Attribute Details
#channel ⇒ Object (readonly)
channel to join
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/Join.rb', line 6 def channel @channel end |
#key ⇒ Object (readonly)
key for channel
8 9 10 |
# File 'lib/mod_spox/messages/outgoing/Join.rb', line 8 def key @key end |